mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 18:51:40 +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 |
||
---|---|---|
.. | ||
cast | ||
collections | ||
compare | ||
crypto | ||
css | ||
data | ||
debug | ||
diagrams | ||
encoding | ||
fmt | ||
hash | ||
hugo | ||
images | ||
inflect | ||
internal | ||
js | ||
lang | ||
math | ||
openapi | ||
os | ||
page | ||
partials | ||
path | ||
reflect | ||
resources | ||
safe | ||
site | ||
strings | ||
templates | ||
time | ||
tplimpl | ||
transform | ||
urls | ||
template.go | ||
template_info.go | ||
template_test.go |