yogthos / Selmer

A fast, Django inspired template system in Clojure.
Eclipse Public License 1.0
985 stars 114 forks source link

for i in 10|range|drop:1 does not work #276

Closed seancorfield closed 2 years ago

seancorfield commented 2 years ago

Looks like a bug in my PR:

user=> (p/render "{% for i in 10|range|take:3 %}{{i}}; {% endfor %}" {})
"1; 0; "
user=> 

(for this case, it could use 3|range but filters should work after range I think)