Closed bep closed 3 months ago
This enables constructs on the form:
{{ with transform.ToMath "c = \\foo{a^2 + b^2}" }} {{ with .Err }} {{ warnf "error: %s" . }} {{ else }} {{ . }} {{ end }} {{ end }}
Note that the new Result type behaves like template.HTML (or a string if needed) when printed, but it will panic if in a error state.
Result
template.HTML
Closes #12748
This enables constructs on the form:
Note that the new
Result
type behaves liketemplate.HTML
(or a string if needed) when printed, but it will panic if in a error state.Closes #12748