mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
tpl: Add TemplateFuncsNamespaceRegistry
As a first step to remove the hard ties between `tplimpl` and the different namespace packages. The `lang` package is used as the first example use case. See #3042
This commit is contained in:
@@ -70,6 +70,7 @@ func TestFuncsInTemplate(t *testing.T) {
|
||||
|
||||
// Add the examples from the docs: As a smoke test and to make sure the examples work.
|
||||
// TODO(bep): docs: fix title example
|
||||
// TODO(bep) namespace remove when done
|
||||
in :=
|
||||
`absLangURL: {{ "index.html" | absLangURL }}
|
||||
absURL: {{ "http://gohugo.io/" | absURL }}
|
||||
|
Reference in New Issue
Block a user