<feed xmlns='http://www.w3.org/2005/Atom'>
<title>askama/testing/templates/macro-no-args.html, branch main</title>
<subtitle>added poem support</subtitle>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/'/>
<entry>
<title>Allow macros to be defined and called without arguments</title>
<updated>2023-06-12T08:35:40+00:00</updated>
<author>
<name>mataha</name>
<email>mataha@users.noreply.github.com</email>
</author>
<published>2023-06-10T02:57:56+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=cba1fb8e508eae87d213e7bc4c7b2eb8b4b92732'/>
<id>cba1fb8e508eae87d213e7bc4c7b2eb8b4b92732</id>
<content type='text'>
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 &lt;mataha@users.noreply.github.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 &lt;mataha@users.noreply.github.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
