On Wed, May 30, 2012 at 5:15 PM, Tim Caswell <[email protected]> wrote: > On Wed, May 30, 2012 at 7:15 AM, Oliver Leics <[email protected]> > wrote: >> >> Hallo, >> >> is dustjs[1] really the only template engine that implements rt >> streamed render output and supports asynchronous calls within >> template-functions? > > I will say I'm glad you're looking for this. I've been making this kind of > template language for years (Grain, Corn, Kernel, etc) and it's never seemed > to catch on. People say it's neat and I should port it to the browser and > yeah, it's neat (yes I repeated that). But then the next day it's like the > project never existed.
I played around for one day with streaming template engines and at the moment I'm very optimistic that this can work well: Take several local servers serving the single parts of one html-page (login/logout, navigation, tagcloud, blogposts, whoisonline, ect pp) and one server with - say - dustjs as the template engine to fetch all the parts of the html-page from the local servers and combine them into one single html-page. Don't wait until the whole page is in memory, but immediately stream the rendered output to the client. I hope you all get the idea. And tell me if I am just insane, as it is absolutely possible that I really am, because I'm just too exited and find that out later by myself ;-) > I don't know if the idea is too foreign for people or if there is no real > need for it. I used it for a real project and I like it. It feels like the > good parts to PHP without all the ugly.. I would like to see something with the power of PHPs Smarty Template Engine for node.js with all the benefits node.js brings us. But most importantly such a template engine must be as much as _designer friendly_ as PHPs Smarty already is: Easy syntax, easy to design with, easy to extend with plugins; Plugins made by programmers. That would open the doors to the node.js and serverside javascript world for much more people. But maybe I'm just too exited atm, thus playing the prophet. -o -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
