Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support of template import in the freemarker engine #34

Open
M3lkior opened this issue Jan 15, 2024 · 0 comments
Open

Support of template import in the freemarker engine #34

M3lkior opened this issue Jan 15, 2024 · 0 comments

Comments

@M3lkior
Copy link

M3lkior commented Jan 15, 2024

The aims are to support the freemarker macro feature in order to use the freemarker inline script like

<#import "simple_macro.ftl" as myMacro><@myMacro.p >Hello world!</@myMacro.p>

with simple_macro.ftl deploying into a templates folder in the camunda classpath

<#macro p><p><#nested></p></#macro>

Using the external resource must also work :

Using freemarker/test.ftl (in a different folder than templates) with the following test.ftl content :

<#import "simple_macro.ftl" as simple>

<@simple.p>it works</@simple.p>

A related PR (tested with Camunda 7.20 is almost ready)

M3lkior pushed a commit to M3lkior/camunda-template-engines-jsr223 that referenced this issue Jan 15, 2024
Templates must be in a /templates dir, in the Camunda classpath.

See the README.md for examples usages.

Close camunda#34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant