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

Partial templating? #847

Closed FL33TW00D closed 1 year ago

FL33TW00D commented 1 year ago

I have a bit of an odd usecase.

I would like to replace some variables at compile time in a build.rs file, and some variables at runtime. Is this possible?

Keats commented 1 year ago

Compile time is fine, for runtime you will need to replace the whole Tera instance