Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (html/deftemplate base (str template-path "signup.html")
- [{:keys [content]}]
- [:#title] (html/content "title one")
- [:#content] (util/maybe-substitute content)
- )
- (html/deftemplate base-two (str template-path "signup.html")
- [{:keys [content]}]
- [:#title] (html/content "title two")
- [:#content] (util/maybe-substitute content)
- )
- (def base-template (base {:title "title"}))
- ;does not work, how to do it right?
- (alter-var-root #'base-template #((base-two) {:content "base two"}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement