fhd / clostache

{{ mustache }} for Clojure
GNU Lesser General Public License v3.0
318 stars 62 forks source link

Allow variable containing template #28

Closed liquidz closed 11 years ago

liquidz commented 11 years ago

Clostache cannot render following template correctly.

mustache:

puts Mustache.render("{{a}}-{{b}}", {:a => "{{b}}", :b => "c"})
# => "{{b}}-c"

clostache:

(println (render "{{a}}-{{b}}" {:a "{{b}}" :b "c"}))
; => "c-"
fhd commented 11 years ago

Thanks, merged! Glad to be rid of that hack :blush: