Package tmpl handles loading and rendering HTML templates in Go. https://code.soquee.net/tmpl/
Go to file
Sam Whited fe10bfe57c
tmpl: add some missing tests
This patch adds tests for parsing from multiple filesystems to make sure
that the previous filesystem is not overwritten, ignored, etc. and that
errors are returned even if the filesystem being parsed is the last one
to be parsed (ie. the first one added to the parse stack).

Signed-off-by: Sam Whited <sam@samwhited.com>
2023-12-06 08:40:36 -05:00
.builds .builds: add builds.sr.ht CI config 2019-05-28 00:42:55 -05:00
.gitignore gitignore: ignore test coverage and profiling 2023-12-06 08:39:18 -05:00
CONTRIBUTING.md Initial public release 2019-05-27 23:59:22 -05:00
LICENSE Initial public release 2019-05-27 23:59:22 -05:00
README.md Initial public release 2019-05-27 23:59:22 -05:00
go.mod go: retract three versions that don't exist 2023-12-05 08:36:47 -05:00
go.sum go: retract three versions that don't exist 2023-12-05 08:36:47 -05:00
tmpl.go tmpl: remove title from page 2023-12-05 08:29:47 -05:00
tmpl_test.go tmpl: add some missing tests 2023-12-06 08:40:36 -05:00

README.md

tmpl

Package tmpl handles loading and rendering HTML templates.

import (
	"code.soquee.net/tmpl"
)

License

The package may be used under the terms of the BSD 2-Clause License a copy of which may be found in the LICENSE file.

Unless you explicitly state otherwise, any contribution submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.