That’s how the other Elixir library handled it. At https://github.com/bettyblocks/liquid-elixir#custom-tags-and-filters, it’d either done via configuration or passing it in upon template compilation. It might have to be another argument or something passed into how
Solid.Parser builds up its support. I’m looking into
nimble_parsec now but it looks like being able to define if it has a closing tag (for block tags) and a way to pass in a string that can be processed as an argument list would work.
This post https://blog.sverrirs.com/2016/04/custom-jekyll-tags.html has some ideas on ideas, based on Jekyll. Personally, giving the argument string as is to the tag would be the simplest (maybe some serialization facilities could be built for people but not a requirement to ship)
Published using Quill.
Syndicated To Bridgy Publish to GitHub