Skip to content

Instantly share code, notes, and snippets.

@liquidz
Last active Aug 14, 2019
Embed
What would you like to do?
(let [tmpl (str/join "\n" ["first"
""
"{{#arr}}"
"{{val}}"
"{{/arr}}"
""
"{{#arr}}"
"{{val}}"
"{{/arr}}"
""
"last"])]
(cljstache.core/render tmpl {:arr {:val "foo"}}))
;;; Expected
; first
;
; foo
;
; foo
;
; last
;;; Actual
; first
;
; foo
;
; foo
; last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment