deftemplate as a function?

30 views
Skip to first unread message

carson

unread,
Feb 12, 2012, 12:14:32 AM2/12/12
to enliv...@googlegroups.com
Hi,

Suppose
(def substitutes
[[:p#msg1] (content "Hi")
 [:p#msg2] (content "Bye")])

I would like to write something like

(apply deftemplate "templateName" "template1.html"
  []
  substitutes)

I hope that makes sense.  Because I can't do that right now since deftemplate is a macro.  substitutes would be generated at run-time of course.

Thanks.
Reply all
Reply to author
Forward
0 new messages