Claus Ibsen created CAMEL-13534:
-----------------------------------

             Summary: Simple language - Add colon as alternative syntax style
                 Key: CAMEL-13534
                 URL: https://issues.apache.org/jira/browse/CAMEL-13534
             Project: Camel
          Issue Type: Improvement
            Reporter: Claus Ibsen


The simple syntax can maybe be improved a bit when its a function such as env 
or sysenv or other functions vs OGNL method calls on body, headers etc that 
uses dot style.

Eg 
{code}
${sysenv.FOO}
{code}
vs
{code}
${env:FOO}
{code}

It may feel a bit more natural to use colon in these situations, and dot when 
using

{code}
${body.someGetter}
{code}

And to refer to a header you can use both
{code}
${header.foo}
{code}

{code}
${header:foo}
{code}

https://github.com/apache/camel/blob/master/core/camel-core/src/main/docs/simple-language.adoc



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to