Advertisement
Guest User

Untitled

a guest
Apr 8th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (html/deftemplate base (str template-path "signup.html")
  2.                     [{:keys [content]}]
  3.                     [:#title] (html/content "title one")
  4.                     [:#content] (util/maybe-substitute content)
  5.                     )
  6. (html/deftemplate base-two (str template-path "signup.html")
  7.                     [{:keys [content]}]
  8.                     [:#title] (html/content "title two")
  9.                     [:#content] (util/maybe-substitute content)
  10.                     )
  11.  
  12. (def base-template (base {:title "title"}))
  13.  
  14. ;does not work, how to do it right?
  15. (alter-var-root #'base-template #((base-two) {:content "base two"}))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement