Lindenii Project Forge
ssh://forge.lindenii.runxiyu.org/hare/:/repos/hare-htmpl
Branches |
---|
master |
Recent commits (see all) | ||
---|---|---|
Title | Author | Author Date |
Note about io::handle in README | Runxi Yu | 2025-03-14 13:47:30 +0800 |
Update documentation for htmplgen.1 | Runxi Yu | 2025-03-13 19:32:21 +0800 |
Change main repo URL | Runxi Yu | 2025-03-13 16:08:05 +0800 |
Clarify that this is a Hare port, in the README | Runxi Yu | 2025-03-13 15:42:27 +0800 |
Add an example | Runxi Yu | 2025-03-13 12:37:38 +0800 |
This is a Hare port of the HTML templating engine used in Got and described in Omar Polo's blog post.
The htmplgen
program generates a Hare file from the template file.
The htmpl
module provides auxiliary functions used by the generated Hare
code, and must be installed for the generated code to compile.
Each template is presented as a function that accepts an io::handle
and
other user-defined parameters, if any. The template writes to that
io::handle
; this allows for a variety of output backends (i.e. you
could use a memio
/bufio
stream, or write to an actual
file/socket/pipe socket, etc.)
The primary repository has been migrated onto the Lindenii Project's forge.
This inherits the ISC license from the original code. See the LICENSE file.
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/hare-htmpl/
cd hare-htmpl
git checkout -b contrib/whatever
# edit and commit stuff
git push -u origin HEAD
#chat
on
irc.runxiyu.org.