Keats / tera

A template engine for Rust based on Jinja2/Django
http://keats.github.io/tera/
MIT License
3.43k stars 279 forks source link

How to change context's value in template? #855

Closed cathaysia closed 7 months ago

cathaysia commented 1 year ago

I have such tera codes:

{% for item in items %}
    {% do item.name = item.name | to_lower_case %}
{% endfor %}

the items is a context, and this codes doesn't work. how can i achieve it?