diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2021-09-20 13:29:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-20 12:29:37 -0600 |
commit | 16f752125fb5d6fe46b9dea95eec8804bfdb24f8 (patch) | |
tree | 48f5db584f54a00dedf738ad09a5eed7ce06ee42 /modules/caddyhttp/fileserver/testdata/foodir/foo.txt | |
parent | 0a5f7a677f00e1406247fb77c6a8f45898532ae5 (diff) |
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
Diffstat (limited to 'modules/caddyhttp/fileserver/testdata/foodir/foo.txt')
0 files changed, 0 insertions, 0 deletions