yogthos/Selmer

known-variables and tags

Open

#306 opened on Oct 6, 2023

View on GitHub
 (8 comments) (0 reactions) (0 assignees)Clojure (670 stars) (86 forks)batch import
bughelp wanted

Description

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}

Contributor guide