yogthos/Selmer

known-variables and tags

Aperta

#306 aperta il 6 ott 2023

 (8 commenti) (0 reazioni) (0 assegnatari)Clojure (121 fork)batch import
bughelp wanted

Metriche repository

Star
 (1042 stelle)
Metriche merge PR
 (Nessuna PR mergiata 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