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

Leverage Jinja better #901

Open
1 of 3 tasks
jaimergp opened this issue Nov 18, 2024 · 1 comment
Open
1 of 3 tasks

Leverage Jinja better #901

jaimergp opened this issue Nov 18, 2024 · 1 comment

Comments

@jaimergp
Copy link
Contributor

We were depending already on Jinja to parse the input file, so using it with our templates was a no brainer.

Some items:

  • Use Jinja for templating #892. This is the initial 1:1 conversion, not trying to be too smart to keep the diff digestable.
  • Move some simple templating logic like .lower() from the Python modules over to the Jinja template, where they belong
  • Replace some variables that render lots of lines with the corresponding for-loops in JInja
@michalwyszynski93
Copy link

examples/custom_nsis_template/custom.nsi.tmpl should also be changed to jinja

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants