~rycwo/tmplgen

Basic text template generator
Make flags package-level variables
Add README note about artifact downloads
Add helper scripts to generate release

clone

read-only
https://git.sr.ht/~rycwo/tmplgen
read/write
git@git.sr.ht:~rycwo/tmplgen

You can also use your local clone with git send-email.

#Overview

builds.sr.ht status

Simple wrapper around Go text/template to read self-contained template files and write generated results to a file.

This module depends on Sprig to provide additional template functions.

tmplgen is currently being used in Forge to generate source files. See vector.h.in for an example.

#Usage

Please refer to the text/template docs for details on the template syntax. Additional Sprig function docs can be found here.

# tmplgen -o <filename> <filename>
tmplgen -o foo.h foo.h.in

tmplgen can also read from stdin and write to stdout.

#License

Do what you want to!