PURE templates in Node.js

45 views
Skip to first unread message

Massimiliano Mirra

unread,
Dec 21, 2011, 5:31:29 AM12/21/11
to Pure-Unobtrusive...@googlegroups.com
Hello Mic & everyone,

I was wondering whether anyone got PURE to work on the server side with Node. I've seen mentions in an old thread [1] but nothing definitive.

I've used PURE in a prototype project and liked it a lot, I'm sold on designer-friendly, logic-less templates, however at the moment it seems like Weld [2] is the only such engine running on both the client and the server. I still have to try it but on first look it doesn't appear as versatile as PURE.

Thanks for any insight!

Massimiliano


Mic (BeeBole)

unread,
Dec 21, 2011, 12:42:21 PM12/21/11
to JavaScript Templates Engine PURE
Hello Massimiliano,
Both weld, and pure need jsdom+jquery(or another selector engine) on
node to work.If I remember well Elijah who made an example of pure.js
on node https://gist.github.com/729432, is behind weld.
I'm sorry, but I'm not a big fan of server rendering.That's probably
why I don't contribute a lot about it.
But if anyone is interested, feel free to push request examples on
http://github.com/pure/pure under the folder: nodeI'll accept them
happily.
Cheers,
> [1]https://groups.google.com/d/msg/pure-unobtrusive-rendering-engine/xuB...
> [2]https://github.com/hij1nx/weld

Massimiliano Mirra

unread,
Dec 21, 2011, 3:51:50 PM12/21/11
to Pure-Unobtrusive...@googlegroups.com
Thanks, Mic, I'll look into that. I'm not a fan of server rendering either, this is mostly to feed content to Googlebot without maintaining a second set of templates.
Cheers,
Massimiliano
Reply all
Reply to author
Forward
0 new messages