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
Discuss selection of Template engine used by Open-CMSIS-Pack tools #32
Comments
You can find here a comparison matrix of a log of engines: https://en.wikipedia.org/wiki/Comparison_of_web_template_engines |
Maybe we should clarify what the templating engine will address ? |
As I read the first comment, source files for a project (not project files like cproject or similar) - a tool would generate these files based on project configuration. Looking at the templates in CMSIS-Zone, confirms this, source files generated - basically config files, linker file or any other source file that can be generated based on project configuration. What languages are OK to be used - no requirement there? Looking at freemaker it's written in Java. Handlebars in javascript. |
Good point indeed. What is the technology to be used in this project ? |
"https://en.wikipedia.org/wiki/Comparison_of_web_template_engines - mustache" seems to lack a evaluation language. Freemarker is a third-party tool and requires a JRE (don't think this is an issue). It is called during the build process to generate script/source files based on templates and a data model (*.fzone file). We just need to ensure that it runs. IMHO the language that it is written in is not important, provided that the build environment can execute it. |
Alternative engine might be Jinja, it is typically used with python, but there are also implementations for other languages: |
CMSIS-Zone example for STM32L5 reworked with Handlebars: |
I am closing this issue, as we have concluded to focus on using Handlebars for now. |
In the context of #12 the requirement for a template engine was raised.
Identify available open-source template engines which are suitable for generating
Engines
Create a list of Pros and Cons, discuss and agree and create ADR
The text was updated successfully, but these errors were encountered: