aboutsummaryrefslogtreecommitdiffstats
path: root/testing/templates/macro-no-args.html (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow macros to be defined and called without argumentsLibravatar mataha2023-06-121-0/+21
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>