yogthos / Selmer

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

string-interpolation should work with falsey env #269

Closed escherize closed 3 years ago

escherize commented 3 years ago

includes tests.

fixes the case where:

(def x 1)
(let [x nil] (<< "{{x}}"))

was returning "1" instead of "" because it would skip over x in the local env.