剑龙
STEGOsaurus是一个简单的模板评估引擎。
它代表GO中的“静态模板评估器”。 它使用html/template包处理模板目录,并将输出写出。
$ ./stegosaurus -h
Usage of ./stegosaurus:
-destination string
The directory for all output. It will be created if it doesn't exist. (default "output")
-source string
The directory to walk for source templates and files. (default "templates")
这是它的作用:
来自. 加载一个可选的context.yml文件用作模板上下文。
_foo.tmpl <source