Re: [nodejs] Node or Express partials without templating

2013-04-04 Thread Floby
here comes my shameless plug. I've been working on a new version of 'blue' with new streams. Basically you can include files from files. it's an ejs-like syntax. http://github.com/Floby/node-blue On Wednesday, 3 April 2013 14:07:51 UTC+2, hems wrote: > > cool, looks like you already have very sol

Re: [nodejs] Node or Express partials without templating

2013-04-03 Thread henrique matias
cool, looks like you already have very solid solutions! We ( at work ) use jade. Although you can add logic to the template, what end up happening is actually a fat a model / light view that is able to prepare the data for the template so the template end up with very simple logic - or no logic a

Re: [nodejs] Node or Express partials without templating

2013-04-03 Thread greelgorke
use ejs https://github.com/visionmedia/ejs#includes its as much plain html as you wish Am Dienstag, 2. April 2013 19:56:25 UTC+2 schrieb // ravi: > > On Apr 2, 2013, at 11:38 AM, Dominik Kienzler < > d.kie...@dominik-kienzler.de > wrote: > > > > you need SOME kind of template engine if you want

Re: [nodejs] Node or Express partials without templating

2013-04-02 Thread // ravi
On Apr 2, 2013, at 11:38 AM, Dominik Kienzler wrote: > > you need SOME kind of template engine if you want to work with variables or > something like that in your html templates, for partials you would at least > need some kind of placeholder in a html file which you can replace by the > part

Re: [nodejs] Node or Express partials without templating

2013-04-02 Thread henrique matias
sorry for the personal question, but why not use jade ? seems such a nice solution for templates On 2 April 2013 16:38, Dominik Kienzler wrote: > Hi, > > you need SOME kind of template engine if you want to work with variables > or something like that in your html templates, for partials you wou

Re: [nodejs] Node or Express partials without templating

2013-04-02 Thread Dominik Kienzler
Hi, you need SOME kind of template engine if you want to work with variables or something like that in your html templates, for partials you would at least need some kind of placeholder in a html file which you can replace by the partial code. regards, Dominik Am 02.04.2013 17:09, schrieb

[nodejs] Node or Express partials without templating

2013-04-02 Thread // ravi
Hello all, I am afraid the answer is going to be “nope”, but asking anyway before I go off to implement my own middleware: is there a good way to do the equivalent of server-side includes, or partials, with Node/Express *without* using a template engine (Jade, Hogan, etc)? Regards, —