Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@liquidz
Last active August 14, 2019 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liquidz/693b8520670da066f9690e3aa2e2405c to your computer and use it in GitHub Desktop.
Save liquidz/693b8520670da066f9690e3aa2e2405c to your computer and use it in GitHub Desktop.
(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