You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dimitrios Liapis (JIRA)" <ji...@apache.org> on 2019/05/16 20:54:00 UTC

[jira] [Commented] (CAMEL-13534) Simple language - Add colon as alternative syntax style

    [ https://issues.apache.org/jira/browse/CAMEL-13534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16841714#comment-16841714 ] 

Dimitrios Liapis commented on CAMEL-13534:
------------------------------------------

[~davsclaus] I've picked this one up in this PR: [https://github.com/apache/camel/pull/2923]

I've added colon support navigation for sysenv/env/header/headers

> 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: 10m
>  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)