hugo/tpl
Bjørn Erik Pedersen e58a540895 resources: Create a common ResourceFinder interface
And make both .Resources and resources implement it.

This gets us 2 new methods/functions, so you can now also do:

* .Resources.Get
* resources.ByType

Note that GetRemote is not covered by this interface, as that is only available as a global template function.

Fixes #8653
2022-04-05 18:00:44 +02:00
..
cast all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
collections all: Use strings.Cut 2022-03-21 09:32:35 +01:00
compare all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
crypto tpl/crypto: Add optional encoding arg to hmac function 2022-03-23 19:42:56 +01:00
data all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
debug all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
diagrams all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
encoding all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
fmt all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
hugo all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
images all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
inflect all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
internal all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
js all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
lang all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
math all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
openapi/openapi3 all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
os all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
partials all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
path all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
reflect all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
resources resources: Create a common ResourceFinder interface 2022-04-05 18:00:44 +02:00
safe all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
site all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
strings all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
templates all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
time Localize all the GroupBy*Date methods 2022-04-05 16:11:11 +02:00
tplimpl all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
transform all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
urls all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
template.go all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
template_info.go Add --printUnusedTemplates 2022-02-15 20:01:57 +01:00
template_test.go Create lightweight forks of text/template and html/template 2019-12-12 09:59:34 +01:00