Results 1383 comments of Vincent Prouillet

That wouldn't work here afaik, we would need to ship rustc or not allow dynamic templates. https://github.com/djc/askama is kind of doing the same thing as the article but you need...

Does something like `let tpl = r###"{%- set text = name | default(value=desc or "default") -%}` work?

Wait the `url_for` of actix is on a request....? How would you change the global Tera types to fit that usecase for v2?

> TBH, I have no idea about any possible internals of 2.0? The only part written so far is the parser and the rest might get rewritten from scratch, especially...

Can you do a PR so I can review the code easily?

For @moschroe case, it seems the url mapping is on the request for some reason so doing it once at app init time wouldn't work afaik

> If Tera passed me the context I wouldn't need to write lang=... all over my template This is annoying me as well in Zola, I'll probably pass the context...

Yep it should not be output. Trying on the playground, that seems to work as expected?

```rust // https://github.com/Keats/tera/issues/610 #[test] fn can_remove_whitespace_include_outer() { let mut tera = Tera::default(); tera.add_raw_templates(vec![ ("a.html", "{%- include 'b.html' -%}\n"), ("b.html", ""), ]).unwrap(); assert_eq!(tera.render("a.html", &Context::new()).unwrap(), ""); } ``` seems to pass. Can...

The current version parser is pretty limited when it comes to parenthesis. Tera v2 will have a normal full support but no timeline whatsoever.