hugo/tpl
Cameron Moore 8a26ab0bc5 tpl: Do not return errors in substr for out-of-bounds cases
Most other substr implementations don't error out in out-of-bounds cases
but simply return an empty string (or a value that's printed as an empty
string). We'll follow their lead and not exit template execution.  Allow
the user decide what to do with the empty result.

Fixes #8113
2021-01-08 10:13:10 +01:00
..
cast all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
collections all: Fix minor typos 2020-12-16 12:11:32 +01:00
compare all: Fix minor typos 2020-12-16 12:11:32 +01:00
crypto all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
data all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
debug tpl: Add debug.Dump 2020-07-02 09:04:46 +02:00
encoding tpl: Extend Jsonify to support options map 2020-04-07 20:01:57 +02:00
fmt all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
hugo all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
images all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
inflect all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
internal Improve LookPath 2020-12-19 17:03:07 +01:00
js all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
lang all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
math all: Fix minor typos 2020-12-16 12:11:32 +01:00
openapi/openapi3 Add Dart Sass support 2020-12-30 17:32:25 +01:00
os all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
partials all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
path all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
reflect tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
resources Add Dart Sass support 2020-12-30 17:32:25 +01:00
safe all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
site all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
strings tpl: Do not return errors in substr for out-of-bounds cases 2021-01-08 10:13:10 +01:00
templates all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
time all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
tplimpl Add Dart Sass support 2020-12-30 17:32:25 +01:00
transform all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
urls all: Fix minor typos 2020-12-16 12:11:32 +01:00
template.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
template_info.go Add render template hooks for links and images 2019-12-18 11:44:40 +01:00
template_test.go Create lightweight forks of text/template and html/template 2019-12-12 09:59:34 +01:00