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

feat: add `Tera:new_uninitialized` (#677) #845

Closed seancroach closed 4 months ago

seancroach commented 1 year ago

Exposes a new function that creates an instance of Tera without registering the default filters, testers, and functions. If this is merged, the version of tera in Cargo.toml will have to get its minor version incremented. No tests were added as no new code was created (except for a function declaration); I simply cut and paste the body from the Default implementation. I need this functionality and think no-ops as an overwrite are too hacky. I hope others can benefit from this, too.

Keats commented 1 year ago

I'm not a fan of the name but I can see the need hmm

seancroach commented 1 year ago

That's totally fine. I made this rather quickly, and just made it... literal. Augment it however you'd like; I have no strong opinions on the matter.