Keats / tera

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

Web templates only? #780

Closed TomzBench closed 1 year ago

TomzBench commented 1 year ago

I am using this crate to generate rust code (not html,js,css which seems to be the more common use case).

This seems to work OK because the rust compiler ignores newlines. However, when I generate code for other languages like C, my templates break because tera seems to be removing all the newlines from my templates. Is there a way to prevent this behavior?

Basically , I was hoping Tera would be useful for more general use cases besides web. Should I use another template engine?

TomzBench commented 1 year ago

was bug on myside!