Last active
August 14, 2019 08:52
-
-
Save liquidz/693b8520670da066f9690e3aa2e2405c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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