Wanted: simpler metas syntax
#51
Closed
opened 10 years ago by innermatrix
·
4 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
The current metas syntax is, IMO, overly noisy and verbose. I'd like to see it simplified from
to something more like:
The Pollen parser gathers tags of the form
◊meta('key "value")
, but you can invent your own syntax for generating those tags, e.g. —Yeah, I know the parser currently picks up
◊meta('k "v")
. And I know I can come up with my own; this is me requesting for a more convenient metas syntax to be added to pollen proper, because I think there is enough value in this that it shouldn't be reinvented by everyone who wants it.(Once I get up to speed on Racket (ahhh, sweet memories of Scheme in intro CS classes), I'd be happy to contribute a patch to that effect, but for now all I have is a github issue.)
I’ve just pushed a fix to allow multiple key/value pairs within a
meta
tag, so this:Is equivalent to this:
This change is OK with me because it extends the existing syntax in a simple & intuitive way.
Thanks!