SHARE
TWEET

Untitled

a guest Apr 8th, 2014 55 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"}))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top