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

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

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

ASF GitHub Bot logged work on CAMEL-13534:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/May/19 20:51
            Start Date: 16/May/19 20:51
    Worklog Time Spent: 10m 
      Work Description: dimitrisli commented on pull request #2923: CAMEL-13534
URL: https://github.com/apache/camel/pull/2923
 
 
   Addressing https://issues.apache.org/jira/browse/CAMEL-13534
   
   Adding support to navigate with colon (:) for env: / sysenv: / header: / headers: aside from the regular support env. / sysenv. / header. / headers. respectively
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 243621)
            Time Spent: 10m
    Remaining Estimate: 0h

> 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)