rinja-rs / rinja

A template rendering engine based on Jinja, generating type-safe Rust code at compile time.
https://rinja.readthedocs.io
Apache License 2.0
116 stars 10 forks source link

Add support for `|` in `match`/`when` #130

Closed GuillaumeGomez closed 1 month ago

GuillaumeGomez commented 1 month ago

Currently this code doesn't work because of | combinator:

{% match item %}
  {% when 1 | 2 %}yep
  {% when _ %}yop
{% endmatch %}