Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add tests for named arguments in macro calls | Guillaume Gomez | 2023-11-28 | 1 | -0/+28 |
| | |||||
* | Add test for macro self argument | max | 2023-10-12 | 1 | -0/+12 |
| | | | | Signed-off-by: max <gmx.sht@gmail.com> | ||||
* | Allow macros to be defined and called without arguments | mataha | 2023-06-12 | 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> | ||||
* | Allow `{% endmacro name %}` | Bastien Orivel | 2022-04-29 | 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. | ||||
* | Issue #379 was fixed | René Kijewski | 2021-07-30 | 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. | ||||
* | Fix code generation for macro calls that store args in variables. | Ryan Kelly | 2021-06-22 | 1 | -0/+10 |
| | |||||
* | Fixed implicit borrow of expressions (#390) | Christian Vallentin | 2020-12-01 | 1 | -0/+10 |
| | |||||
* | Use 2018 edition idioms | Dirkjan Ochtman | 2018-12-08 | 1 | -2/+0 |
| | |||||
* | Remove unused macro_use attributes | Dirkjan Ochtman | 2018-12-08 | 1 | -1/+0 |
| | |||||
* | Fix deep nested imports in macro calls | bott | 2018-09-07 | 1 | -0/+10 |
| | |||||
* | Add test for nested macro calls into different scope | bott | 2018-09-02 | 1 | -0/+10 |
| | |||||
* | Fix whitespace handling for macros and imports (#55) | larros | 2017-10-01 | 1 | -1/+1 |
| | | | | | | Resolves https://github.com/djc/askama/issues/52. * Fix of review comments | ||||
* | Add support for importing template files with macros (#51) | larros | 2017-09-26 | 1 | -0/+12 |
| | | | | * Fix review comments for macro imports | ||||
* | Forgot to remove debugging cruft, again | Dirkjan Ochtman | 2017-08-23 | 1 | -1/+1 |
| | |||||
* | Add test for basic macro use | Dirkjan Ochtman | 2017-08-22 | 1 | -0/+16 |