You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking at the new indent built-in introduces recently (merged in #798).
At first I was looking into slightly clarifying the documentation wording, see docs, but then went down this rabbit hole and found myself confused on how to use it.
Example main.rs:
use tera::{Context, Tera}; // v1.19.1
fn main() {
let context = Context::new();
let tera = Tera::new("./*.tt").unwrap();
let res = tera.render("test.tt", &context).unwrap();
println!("{}", res);
}
Question for @untereiner (author of the #798 ): can you help me understand how the flags blank,first and prefix actually work? The above template rendering is slightly confusing for me.
Thanks!
The text was updated successfully, but these errors were encountered:
I am looking at the new
indent
built-in introduces recently (merged in #798).At first I was looking into slightly clarifying the documentation wording, see docs, but then went down this rabbit hole and found myself confused on how to use it.
Example
main.rs
:Tera template
test.tt
:Will be rendered as:
Question for @untereiner (author of the #798 ): can you help me understand how the flags blank,first and prefix actually work? The above template rendering is slightly confusing for me.
Thanks!
The text was updated successfully, but these errors were encountered: