fhd / clostache

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

Infinite loop when rendering a template with a template inside #59

Open marcomorain opened 6 years ago

marcomorain commented 6 years ago

Hi there 👋

I've hit an issue where a call to render never returns: (Using [cljstache "2.0.1"])

user=> (require 'cljstache.core)
nil
user=> (cljstache.core/render "{{ foo }}" {:foo "{{ foo }}"})
"{{ foo }}" ;; This works OK
user=> (cljstache.core/render "{{ foo.a }}" {:foo {:a "{{ foo.a }}"}})
;; This never returns