You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <va...@reverycodes.com> on 2007/09/17 03:23:40 UTC
Re: New expressions' syntax
Grzegorz Kossakowski wrote:
> Currently we use {} to wrap sitemap expressions. We use #{} to wrap
> JXPath, ${} to wrap Jexl, @{} to wrap Javascript expressions, all in
> Template only.
>
> One of my big goals is to make you think only about one string template,
> one wrapping chars and whatever you like number of expression languages
> you like everywhere in Cocoon. When achieving this goal I must keep
> back-compatibility in mind all the time as Daniel is patiently reminding
> me.
I'd rather prefer to have ability to map character to expression language, and
keep ${}, #{}, @{} as default configurations for jexl, jxpath, javascript
respectively (with escape syntax like $${} or ${{}}).
Suggested syntax - be it {jxpath:foo} or ${jxpath:foo} is IMHO ugly and
unnecessarily verbose.
Vadim