-
Notifications
You must be signed in to change notification settings - Fork 309
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
Add a JTE reporter #8842
Comments
It would be awesome of this allows us to get rid of the overly complex FreemarkerTemplateProcessor which basically just makes the Kotlin models more accessible from Freemarker. |
But isn't it so that e.g. control structures still require JTE syntax, like |
Yes.
This is definitely also an option. It's somehow the opposite approach to template engines. With template engines you write the template in the native output format like Markdown and inject some code here and there, so the "main" syntax of the template file is that of the output format. With the Kotlin script approach the code part becomes easier, but it becomes harder to ensure that the syntax of the output format is followed (expect when a DSL for the format is available). |
True. Maybe IntelliJ language injections could help here. |
Add a JTE template reporter as an alternative to the Freemarker template reporter.
In constrast to Freemarker, JTE supports Kotlin expressions in templates which would make it easier to call Kotlin code from the templates without having to learn another syntax.
The text was updated successfully, but these errors were encountered: