[
https://issues.apache.org/jira/browse/KARAF-7826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839302#comment-17839302
]
michael elbaz commented on KARAF-7826:
--------------------------------------
ok weird thing i finally found i need to escape => `\${item?counter}` for doing
this work when i debug i see the template without this variable like it was
disappeared, exactly here => freemarker.core.Expression#eval
> Karaf + Freemarker
> ------------------
>
> Key: KARAF-7826
> URL: https://issues.apache.org/jira/browse/KARAF-7826
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.4.5
> Reporter: michael elbaz
> Priority: Major
>
> Hello i would like to report a bug using Karaf + camel-freemarker (3.22) when
> i try to use loop + counter
> ([https://freemarker.apache.org/docs/ref_builtins_loop_var.html#ref_builtin_counter)]
> {code:java}
> <#list ['a', 'b', 'c'] as i>
> ${i?counter}: ${i}
> </#list>{code}
> karaf output
> {code:java}
> : a
> : b
> : c{code}
> The loop counter are not printed is only happen inside Karaf but work on just
> running camel or using unit test
--
This message was sent by Atlassian Jira
(v8.20.10#820010)