[
https://issues.apache.org/jira/browse/CAMEL-13534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16844965#comment-16844965
]
Dimitrios Liapis commented on CAMEL-13534:
------------------------------------------
Please consider PR: [https://github.com/apache/camel/pull/2938] ,
as the original PR: [https://github.com/apache/camel/pull/2935] has been closed
since there was an issue with a git rebase
> 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
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)