Enlive-style Javascript Templating?

223 views
Skip to first unread message

Timothy Washington

unread,
Jul 1, 2011, 11:24:08 AM7/1/11
to enliv...@googlegroups.com

Hello all, 


I'm using Clojure / Compojure for a webapp. I really like Enlive's approach to templating. Ie, your template is just raw HTML (no odd grammar elements). But I can only use this when in a repl / clojure runtime. I'd want something like Enlive, but on the client/javascript layer. 


Currently, there's Mustache, JQuery Templates, etc. But they all force you to use a special syntax in your templates. I want the client to make an AJAX call, get back JSON, then use Enlive-style selectors to grab DOM elements and populate them with the returned JSON. Does anyone know if something like this exists for Javascript? 


Cheers 

Tim 

Dave Snowdon

unread,
Jul 1, 2011, 12:10:02 PM7/1/11
to enliv...@googlegroups.com
Hi

Have you looked at pure? http://beebole.com/pure/

cheers

Dave

--
You received this message because you are subscribed to the Google Groups "Enlive" group.
To post to this group, send email to enliv...@googlegroups.com.
To unsubscribe from this group, send email to enlive-clj+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/enlive-clj?hl=en.

Timothy Washington

unread,
Jul 1, 2011, 12:39:17 PM7/1/11
to enliv...@googlegroups.com
Oh nice one. I'm going to try this one out. 

Thanks 

Tim Washington 
Reply all
Reply to author
Forward
0 new messages