<feed xmlns='http://www.w3.org/2005/Atom'>
<title>askama/testing/templates/match-option-result-option.html, branch main</title>
<subtitle>added poem support</subtitle>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/'/>
<entry>
<title>Use "target()" to parse "when" block</title>
<updated>2021-07-30T09:45:56+00:00</updated>
<author>
<name>René Kijewski</name>
<email>kijewski@library.vetmed.fu-berlin.de</email>
</author>
<published>2021-07-17T11:40:49+00:00</published>
<link rel='alternate' type='text/html' href='https://bunny.garden/forks/askama/commit/?id=268d8250fb0a9cdcbbd760bdf39424ed02fd1920'/>
<id>268d8250fb0a9cdcbbd760bdf39424ed02fd1920</id>
<content type='text'>
`target()` as used in parsing "let" and "if let" implements parsing
nested tuples and structs. But it does not implement parsing literals.

The functions `match_variant()` and `with_parameters()` as used in
parsing "when" blocks do not implement parsing nested structs, but it
implements parsing literals.

This PR combines `match_variant()` and `with_parameters()` into
`target()`, so that all `{%when%}` support nested structs, too.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`target()` as used in parsing "let" and "if let" implements parsing
nested tuples and structs. But it does not implement parsing literals.

The functions `match_variant()` and `with_parameters()` as used in
parsing "when" blocks do not implement parsing nested structs, but it
implements parsing literals.

This PR combines `match_variant()` and `with_parameters()` into
`target()`, so that all `{%when%}` support nested structs, too.
</pre>
</div>
</content>
</entry>
</feed>
