You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll look into it later, but I don't clearly remember if Pogonos was trying to fully support qualified keywords.
Also, I'm curious about how ambiguous keys like {{a.b/c.d}} should be interpreted. Should it be interpreted as equivalent to:
{{#a}}{{#b/c}}{{d}}{{/b/c}}{{/a}}
Or:
{{#a.b/c}}{{d}}{{/a.b/c}}
where a.b/c is a key qualified with the namespace a.b? (Or should it be taken as an atomic key a.b/c.d that can't be divided into smaller parts?) Do you have any thoughts on this?
Oh I forgot about dotted names...
It seems impossible to fully support fully qualified keyword since it cannot be interpreted uniquely.
In my opinion, fully qualified keyword is outside the specification of mustache, so dotted names should have priority.
Thus, if we support fully qualified keyword partially, {{a.b/c}} should be parsed to {{#a}}{{b/c}}{{/a}}.
Expected
Actual
while
(pg/render-string "{{#f}}{{foo}}{{/f}}" {:f #(str % " world") :foo "hello"})
returns"hello world"
The text was updated successfully, but these errors were encountered: