yogthos/Selmer

known-variables and tags

Open

#306 aperta il 6 ott 2023

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)Clojure (86 fork)batch import
bughelp wanted

Metriche repository

Star
 (670 star)
Metriche merge PR
 (Merge medio 39m) (4 PR mergiate in 30 g)

Descrizione

It seems that #'parser/known-variables does not handle variables in tags correctly:

user=> (selmer/known-variables "{% if {{var}} %}{{other-var}}{% endif %}")
#{:other-var :{{var}}}
;; expected:
;; #{:other-var :var}

Guida contributor