Vincent Prouillet
Vincent Prouillet
It's not possible currently
It would be nice, I'm just not sure what the syntax should be
So it would have to be used with a `set` right?
Very unlikely in the current version. In the next version it might be exposed like the AST is right now (exposed but hidden from the docs, or only exposed with...
When do you need that in templates?
That would break `Tera::new` and be a breaking change if someone disabled the default features :/ It can be done for the next major version though
Note that the website use a WASM version of tera without removing glob
I'm not sure an error would be great here, it's a trait to render a `Value` to a string and I don't think it's faillible. Pretty printing is likely bettter...
Transforming a JSON value into a string is not faillible, no reason to make that an error imo
> What has JSON to do with a template engine? I Tera serializes all values into JSON before rendering a template. In practice, this is not going to be changed...