1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00
Files
TheLocehiliosan_yadm/test
Erik Flodin 8ba9823407 Rewrite default template to handle nested ifs, != and env vars in if
The awk script now performs all processing in the BEGIN block using an
implementation that is capable of handling if statements which contain nested
if statments (fixes #436). To make nested ifs look better, if, else and endif
lines can now have optional whitespace before {%.

Includes are now handled in the same way as the main file which means that
included files can both include other files and have if statements in addition
to variables (fixes #406). Include lines can now also have optional whitespace
before {%.

All variables are handled in the same way now so it's now possible to use env
variables in if statements (fixes #488).

Also add support for != in addition to == (fixes #358). Thus it's now
e.g. possible to check if a variable is set (#477) by doing:

{% if yadm.class != ""%}
Class is set to {{ yadm.class }}
{% endif %}

A non-existing yadm or env variable is now replaced with the empty string.
2024-11-04 22:30:23 +01:00
..
2023-07-12 09:20:00 -05:00
2023-07-12 09:19:53 -05:00
2023-07-12 09:19:59 -05:00
2023-07-12 09:19:53 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00
2023-07-12 09:20:00 -05:00