Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2023-12-07 | Allow trailing comma in macro definition and call | Guillaume Gomez | 1 | -0/+30 | |
2023-12-07 | Add macro test with only argument being passed as named | Guillaume Gomez | 1 | -0/+17 | |
2023-11-28 | Add tests for named arguments in macro calls | Guillaume Gomez | 1 | -0/+28 | |
2023-10-12 | Add test for macro self argument | max | 1 | -0/+12 | |
Signed-off-by: max <gmx.sht@gmail.com> | |||||
2023-06-12 | Allow macros to be defined and called without arguments | mataha | 1 | -0/+10 | |
This commit introduces a shorthand for defining and calling macros when using them as a reusable substitute for variables assigned complex values (e.g. string literals with or without newline escapes). The use-case is formatting - from my experience it's easier to visually parse a `macro` `endmacro` block than a multiline variable assignment. Signed-off-by: mataha <mataha@users.noreply.github.com> | |||||
2022-04-29 | Allow `{% endmacro name %}` | Bastien Orivel | 1 | -1/+1 | |
Just migrated a repo from tera to askama and this was one of the only things that was different. This is also coherent with `{% block %}` for which I added the same feature years ago. | |||||
2021-07-30 | Issue #379 was fixed | René Kijewski | 1 | -0/+10 | |
This PR adds the tests by @msrd0 <git@msrd0.de> that failed before. The error was fixed somewhen between f23162a and now, so these tests serve to prevent regressions in the future. I simplified the tests very slightly to omit whitespaces in the output. | |||||
2021-06-22 | Fix code generation for macro calls that store args in variables. | Ryan Kelly | 1 | -0/+10 | |
2020-12-01 | Fixed implicit borrow of expressions (#390) | Christian Vallentin | 1 | -0/+10 | |
2018-12-08 | Use 2018 edition idioms | Dirkjan Ochtman | 1 | -2/+0 | |
2018-12-08 | Remove unused macro_use attributes | Dirkjan Ochtman | 1 | -1/+0 | |
2018-09-07 | Fix deep nested imports in macro calls | bott | 1 | -0/+10 | |
2018-09-02 | Add test for nested macro calls into different scope | bott | 1 | -0/+10 | |
2017-10-01 | Fix whitespace handling for macros and imports (#55) | larros | 1 | -1/+1 | |
Resolves https://github.com/djc/askama/issues/52. * Fix of review comments | |||||
2017-09-26 | Add support for importing template files with macros (#51) | larros | 1 | -0/+12 | |
* Fix review comments for macro imports | |||||
2017-08-23 | Forgot to remove debugging cruft, again | Dirkjan Ochtman | 1 | -1/+1 | |
2017-08-22 | Add test for basic macro use | Dirkjan Ochtman | 1 | -0/+16 | |