mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 00:32:51 +00:00
e1e1baa1bd
* Make throwOnError=true the new default * Handle JS errors as part of the RPC request/response flow * Return a new Result type with .Err on it This enables constructs on the form: ```handlebars {{ 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. Closes #12748 |
||
---|---|---|
.. | ||
collections | ||
constants | ||
hashing | ||
hcontext | ||
herrors | ||
hexec | ||
hreflect | ||
hstrings | ||
htime | ||
hugio | ||
hugo | ||
loggers | ||
maps | ||
math | ||
para | ||
paths | ||
predicate | ||
rungroup | ||
tasks | ||
terminal | ||
text | ||
types | ||
urls | ||
docs.go |