Lindenii Project Forge
Login

go-htmpl

Simple HTML templating engine

ssh://forge.lindenii.runxiyu.org/go/-/repos/go-htmpl

9bcf8e21 — Runxi Yu 2025-03-19 06:58:51
Make this mostly usable for Go
3d96597e — Runxi Yu 2025-03-19 04:48:41
Further renaming
bb0cbaa9 — Runxi Yu 2025-03-19 04:46:28
Move the htmplgen folder to here

go-htmpl – A simple HTML templating engine

This is a Go port of the HTML templating engine used in Got and described in Omar Polo's blog post.

The gogohtmplgen program generates a Go file from the template file.

Each template is presented as a function that accepts an net/http.ResponseWriter and other user-defined parameters, if any.

Dependencies

License

This inherits the ISC license from the original code. See the LICENSE file.

Contributing

Create a branch that begins with contrib/ and push to the main repo via SSH directly.

git clone ssh://forge.lindenii.runxiyu.org/hare/:/repos/go-htmpl/
cd go-htmpl
git checkout -b contrib/whatever
# edit and commit stuff
git push -u origin HEAD

Support

#chat on irc.runxiyu.org.