cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [RT] StringTemplate: The answer to our templating needs?
Date Fri, 29 Oct 2004 17:49:20 GMT
Carsten Ziegeler wrote:

> Sylvain Wallez wrote:
> 
> 
>>XPath is a must-have when you deal with XML documents while 
>>Jexl is mostly useless in that case but is straightforward 
>>when you deal with JavaBeans. I also agree that understanding 
>>the difference between "${continuation.id}" and 
>>"#{$continuation/id}" is less than evident.
>>
>>So what about a unified syntax for expansion tokens, within 
>>which different languages could be used. Example:
>>- ${continuation.id} // Jexl, default syntax
>>- ${xpath:$continuation/id} // xpath
>>- ${im:defaults:skin} // input-module
>>- ${ognl:$continuation.id} // OGNL [1]
>>
> 
> Hmm, one of the things I really don't like with JXTG is that you
> have to different expression languages. You never know which to
> use and some things work only with one specific language.
> And for me this comes near to FS :)

Amen. I wouldn't even go for plugins. Let's chose one syntax and just 
use that.

-- 
Stefano.


Mime
View raw message