just wanted to let you know about a little extention I build upon the
regular ERB-style templating that is available through underscore.js
and other libraries.
The template engine can execute parts asynchronously. The usefulness
of this might be kind of limited but it does help with flushing
content to the browser as early as possible. It basically means that
you can execute the view at the same time as the model.
Example Template
http://paste.ubuntu.com/346640/
Source
http://bit.ly/7sLQkY
Cheers
Malte
I really think async templating should become standard in the node
world.
--fg
On Dec 27, 3:15 pm, Malte Ubl <malte....@gmail.com> wrote:
> Hey,
>
> just wanted to let you know about a little extention I build upon the
> regular ERB-style templating that is available through underscore.js
> and other libraries.
>
> The template engine can execute parts asynchronously. The usefulness
> of this might be kind of limited but it does help with flushing
> content to the browser as early as possible. It basically means that
> you can execute the view at the same time as the model.
>
Currently partials are not streamed before completion of the partial.
I might change this.
Next up is a release on github.
Cheers
Malte
> --
>
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
I'll probably have something posted on Github in the next day or too. For now the project will called Grain. <http://bit.ly/7rL7h1>
What do you mean with hot code reloading?
--fg
2009/12/29 Felix Geisendörfer <fe...@debuggable.com>:
> On Dec 28, 11:50 pm, Malte Ubl <malte....@gmail.com> wrote:
>> I implemented
>> - nested asynchronous partials
>> - optional hot code reloading
>> - multi line <%%> statements
>
> What do you mean with hot code reloading?
if the template changes on the server it is recompiled and loaded into memory.
Cheers
Malte
Very nice! Can't wait to play with this soon! Hopefully Ryan will like
my hot-code reloading stuff for modules as well, but gotta figure out
this libeio issue first!
--fg
Cheers
Malte
2009/12/29 Felix Geisendörfer <fe...@debuggable.com>:
Fork away!