Skip to content

Add Tera v2 support - #3010

Open
axoking wants to merge 3 commits into
rwf2:masterfrom
axoking:MigrateToTeraV2
Open

Add Tera v2 support#3010
axoking wants to merge 3 commits into
rwf2:masterfrom
axoking:MigrateToTeraV2

Conversation

@axoking

@axoking axoking commented Aug 23, 2026

Copy link
Copy Markdown

I added a feature tera2 which will use tera v2 instead of the deprecated v1. I left the old tera feature working for compatibility.

An if condition that checks if the template exists could be omitted, because tera 2 early returns before that function is even called if the template does not exist.

I did not write any documentation or testing, because I'm not familiar with that. But I tested both tera and tera2 with a seperate crate I wrote, and they work and render using the correct tera version.

Comment thread contrib/dyn_templates/src/lib.rs Outdated
Co-authored-by: Peter W <peter.wischer@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants