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?
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?