Closed KoltesDigital closed 1 year ago
Try {{ throw(message="Error") }}
Error { kind: Msg("Failed to render '__tera_one_off'"), source: Some(Error { kind: CallFunction("throw"), source: Some(Error { kind: Msg("Err"), source: None }) }) }
Note that I'm actually using tera-cli, which use tera 1.18.
Ah nevermind, that was the good one. Wrapped in {% if 0 %}
{% endif %}
it doesn't fail anymore, so that's the expected result. Thanks!
Hi. I can't get the right syntax to compile. Can you?
Result: