Re: Yet another html templating library

2009-01-20 Thread Daniel Jomphe
Christophe Grand wrote: > > Therefore, this feels a bit misleading to me: "this separates design > > from code even further". I just want to point out StringTemplate helps > > separating design from code, but its main goal is separating the View > > from Controller and Model in a formally strict

Re: Yet another html templating library

2009-01-20 Thread Christophe Grand
Daniel Jomphe a écrit : > Stuart Sierra wrote: > >> Very interesting, Christophe. I've been playing with StringTemplate >> lately, but this separates design >> from code even further. Can it do conditionals, as in "if this >> variable is true, includes this HTM

Re: Yet another html templating library

2009-01-19 Thread Daniel Jomphe
Stuart Sierra wrote: >  Very interesting, Christophe. I've been playing with StringTemplate > lately, but this separates design > from code even further. Can it do conditionals, as in "if this > variable is true, includes this HTML element"? ...and the following

Re: Yet another html templating library

2009-01-19 Thread Stuart Sierra
On Jan 19, 2:18 pm, Christophe Grand wrote: > In the only example, I use 'when-not to conditionally display an element. Got it, I didn't recognize at first what html/show was doing. -S --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: Yet another html templating library

2009-01-19 Thread Christophe Grand
Stuart Sierra a écrit : > Very interesting, Christophe. I've been playing with StringTemplate > lately, but this separates design > from code even further. Can it do conditionals, as in "if this > variable is true, includes this HTML element" In the only example,

Re: Yet another html templating library

2009-01-19 Thread Stuart Sierra
Very interesting, Christophe. I've been playing with StringTemplate lately, but this separates design from code even further. Can it do conditionals, as in "if this variable is true, includes this HTML element"? -Stuart Sierra On Jan 19, 5:34 am, Christophe Gra

Re: Yet another html templating library

2009-01-19 Thread lpetit
Ok, thanks for the precision. It's always very bad when I make false comparisons .. very difficult to get rid of them. Merci Christophe, A bientôt, -- Laurent On 19 jan, 13:53, Christophe Grand wrote: > lpetit a écrit :> Hello, > > > Is it somehow related to the way Wicket does templating  ? >

Re: Yet another html templating library

2009-01-19 Thread Christophe Grand
lpetit a écrit : > Hello, > > Is it somehow related to the way Wicket does templating ? > After looking at Wicket examples, I say no: Wicket requires the template author to add namespaced attributes or elements to the html code and Enlive doesn't try to provide a component system. Enlive is

Re: Yet another html templating library

2009-01-19 Thread lpetit
Hello, Is it somehow related to the way Wicket does templating ? On Jan 19, 11:34 am, Christophe Grand wrote: > Hello group! > > Enlive (http://github.com/cgrand/enlive/tree/master) is a selector based > templating library. > The main design goal was to decouple html and presentation code, tha

Yet another html templating library

2009-01-19 Thread Christophe Grand
Hello group! Enlive (http://github.com/cgrand/enlive/tree/master) is a selector based templating library. The main design goal was to decouple html and presentation code, that's why enlive templates are plain old html files (it will ease roundtripping with designers). In code, you have to decl