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 <
> [email protected] <javascript:>> 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 partial code. 
> > 
>
> Hello Dominik, 
>
> thank you for the response. I do not have any variables in my HTML 
> templates (partials) because I use TransparencyJS to fill in my data 
> (Transparency is DOM based and requires no DSL). All I need is to be able 
> to break my single-page app’s HTML into separate files (header, footer, 
> etc) for easier maintenance, and have them joined up similar to how the old 
> SSI used to work. Or even just compiled beforehand. 
>
>
> On Apr 2, 2013, at 11:51 AM, henrique matias 
> <[email protected]<javascript:>> 
> wrote: 
> > sorry for the personal question, but why not use jade ? 
> > seems such a nice solution for templates 
> > 
>
>
> Hello Henrique, 
>
> not personal at all :-). I don’t use Jade because I am not in favour of 
> DSLs (or equivalent). I know HTML, it works with my 
> editors/plugins/toolchain. With TransparencyJS I do not need the templating 
> and logic provided by templating engines like Jade (I am also 
> philosophically disinclined to mix logic into UI, as most templating 
> engines do). 
>
> Appreciate the response from both of you, 
>
>         —ravi 
>
>
> P.S: I decided to buy CodeKit (yes, I realise the DSL’ishness of it) and 
> deal with my problem outside of Node/Express. But if anyone has suggestions 
> I would still love to hear them, and am grateful for them. 
>
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to