ref: ab5b8b723e7e84d01c2a74c7e7763d4ef88cc5fd tmplgen/README.md -rw-r--r-- 1.1 KiB
ab5b8b72Ryan Chan Add helper scripts to generate release 1 year, 10 months ago


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.


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.


Do what you want to!