[
https://issues.apache.org/jira/browse/JEXL-177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14709498#comment-14709498
]
Henri Biestro commented on JEXL-177:
------------------------------------
Documentation might be confusing and it may not fit your style but you could
use something like:
{code}
$$ if (item != null) {
<package>${item}</package>
$$ }
{code}
In templates (vs expressions), lines that begin with '$$' allow writing script
fragments and you get access to the full syntax (var, functions, etc).
Other lines are interpolated.
> Unified expressions to be used in String literals in Jexl scripts
> -----------------------------------------------------------------
>
> Key: JEXL-177
> URL: https://issues.apache.org/jira/browse/JEXL-177
> Project: Commons JEXL
> Issue Type: New Feature
> Affects Versions: 3.0
> Reporter: Dmitri Blinov
> Priority: Minor
>
> Introduce new string literals to jexl script that allow unified expressions
> to be used, string literals could use for example triple quoted (single or
> double) syntax for delimiters, may include newlines and should not escape
> single quotes
> {code}
> user = "Bob"; server = "Test"; s = """Hello ${user}, welcome to ${server}""";
> return s;
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)