tera icon indicating copy to clipboard operation
tera copied to clipboard

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

Open seancroach opened this issue 1 year ago • 2 comments

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.

seancroach avatar Jul 25 '23 06:07 seancroach

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

Keats avatar Jul 27 '23 12:07 Keats

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.

seancroach avatar Jul 29 '23 03:07 seancroach