Luca Burgazzoli created CAMEL-11230:
---------------------------------------

             Summary: Allow to configure the prefix/suffix used for languages
                 Key: CAMEL-11230
                 URL: https://issues.apache.org/jira/browse/CAMEL-11230
             Project: Camel
          Issue Type: New Feature
          Components: camel-core, camel-language
            Reporter: Luca Burgazzoli
            Priority: Minor
             Fix For: 3.0.0


It would be nice to have a way to configure the prefix/suffix used to parse 
languages so that an user can change the defaults in case they clash with other 
systems or because of personal preferences:

i.e.

{code:xml|title=XML Dsl|borderStyle=solid}
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";>
    <languages>
        <language id="properties" prefix="{{" suffix="}}"/>
        <language id="simple"     prefix="[[" suffix="]]"/>
        <language id="groovy"     prefix="<<" suffix=">>"/>
    </languages>

    <route>
        <from uri="timer:{{timer.name}}"/>
        <log message="Body is [[body]]"/>
        <log message="Body is <<exchange.in.body>>"/>
    </route>
</camelContext
{code}

{code:title=Spring Boot properties|borderStyle=solid}
camel.language.properties.prefix = {{
camel.language.properties.suffix = {{

camel.language.simple.prefix = [[
camel.language.simple.suffix = ]]

camel.language.groovy.prefix = <<
camel.language.groovy.suffix = >>
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to