A lazy man's templating thingy
go get github.com/romainmenke/simple-template
I needed a tool to render template html files into static files.
- it recursively parses all files in the source directory and sub-directories as templates.
- it renders the files in the source directory as pages.
- it happens to remove html comments. (did not know golang templating did that, but happy about it)
I use it with //go:generate simple-template
and modd.
-h
: help-source
: source directory-out
: output directorytrailing args
: exclusion -> simplemust not contain
logic
Uses golang templating.