On Mon, Mar 19, 2012 at 8:24 AM, akira <[email protected]> wrote:

> In other words, is there a best practice for this issue?
>

Right, node has no best practice or official way to use templates.  Most
people just use a framework and use what that framework prescribes.  I tend
to hand-roll my apps (and template languages too). kernel is my latest and
has an interesting property where it accepts async functions as data
properties and resolves them all in parallel.  So you don't have to first
get all your data before starting to render the template.

There are many opinions on the topic of sever-wide templating and often
it's not needed at all.  Most modern web "apps" don't render anything
server-side, they just serve static html, css, and js (often using a cdn)
and then render all the dynamic content in the browser.  Note I said
"apps".  I understand webpages like a blog of wiki that need to be seo
searchable or usable on non-javascript enabled browsers are still going to
use server-side rendering.


> On Mar 19, 2:23 pm, akira <[email protected]> wrote:
> > I know there is no official framework, I asked for the "official
> > method to integrate templating engines", nothing else.  For cases when
> > I do not intend to use connect or express
> >
> > On Mar 19, 2:03 pm, Tim Caswell <[email protected]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > There is no official node.js http framework other than the
> > > http.createServer() API.  As you probably know, that doesn't have many
> > > features beyond basic http protocol parsing and encoding (no sessions,
> > > templates, static file serving, or even cookies).  Express is probably
> the
> > > most popular add-on framework and does have integrated templates.
> >
> > > On Mon, Mar 19, 2012 at 7:19 AM, akira <[email protected]> wrote:
> > > > Is there an official method to integrate templating engines? Most of
> > > > the examples I have seen are based on connect or express.
> > > > Thanks
> >
> > > > --
> > > > 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
>
> --
> 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
>

-- 
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

Reply via email to