Skip to content

Instantly share code, notes, and snippets.

@saitouena
Created July 1, 2019 06:17
Show Gist options
  • Save saitouena/08146d8fa2ba5d0b05604f6ec28f3f3c to your computer and use it in GitHub Desktop.
Save saitouena/08146d8fa2ba5d0b05604f6ec28f3f3c to your computer and use it in GitHub Desktop.
(deftest test-render-multi-line
(let [template (str "a\n"
"{{#mp}}\n"
"{{b}}\n"
"{{/mp}}\n"
"\n\n"
"c\n")
result (str "a\n"
"hoge\n"
"\n\n"
"c\n")]
(is (= (render template {:mp {:b "hoge"}}) result))))
@saitouena
Copy link
Author

saitouena commented Jul 1, 2019

cljstacheのリポジトリをとってきて、git submodule update --init --recursive してcore-test.cljcにつけると実行lein test-cljsできる。普通にテスト通ってしまうが...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment