How to use an Enlive template in ClojureScript

80 views
Skip to first unread message

Pierre-Henry Perret

unread,
Apr 27, 2012, 4:04:49 PM4/27/12
to enliv...@googlegroups.com
Hi,

In ClojureScriptOne view, the snippets macros are required (with 'require-macros' ) in the view.cljs file.

My question is : how to use an Enlive  html/deftemplate  in  this same file. 

For instance in snippets I have this macro: (html/deftemplate a-template & forms...)

If in the view.cljs there is a (:require-macros [one.sample.snippets] :as snippets)

When I call snippets/a-template  , it complains it can't find it.

I must add that I have reload the macros file to recompile it
Reply all
Reply to author
Forward
0 new messages