Closed PizzasBear closed 11 months ago
This adds ability to or patterns in any context (e.g. in when and let). This is done by adding an OrChain variant to the Target enum in askama_parser, and simply adding a | between or-chained patterns in askama_derive.
or
when
let
OrChain
Target
askama_parser
|
askama_derive
Closes #904
I've removed the comments, forgot to remove them prior to committing...
This adds ability to
or
patterns in any context (e.g. inwhen
andlet
). This is done by adding anOrChain
variant to theTarget
enum inaskama_parser
, and simply adding a|
between or-chained patterns inaskama_derive
.Closes #904