caddy/modules/caddyhttp/templates
Tim Culverhouse 16f752125f
templates: Add tests for funcInclude and funcImport (#4357)
* Update tplcontext.go

Add {{ render "/path/to/file.ext" $data }} via funcRender

* Update tplcontext.go

* Refactor funcInclude, add funcImport to enable {{block}} and {{template}}

* Fix funcImport return of nil showing up in html

* Update godocs for  and

* Add tests for funcInclude

* Add tests for funcImport

* os.RemoveAll -> os.Remove for TestFuncInclude and TestFuncImport
2021-09-20 12:29:37 -06:00
..
caddyfile.go Improve godocs all around 2019-12-23 12:45:35 -07:00
frontmatter.go templates: Fix front matter closing fence search 2020-07-08 16:46:56 -06:00
frontmatter_fuzz.go ci: fuzz: add 4 more fuzzing targets (#4105) 2021-04-08 11:45:19 -06:00
templates.go templates: Add 'import' action (#4321) 2021-09-17 13:00:36 -06:00
tplcontext.go templates: Add 'import' action (#4321) 2021-09-17 13:00:36 -06:00
tplcontext_test.go templates: Add tests for funcInclude and funcImport (#4357) 2021-09-20 12:29:37 -06:00