跳转至

模板引擎

Apache Velocity

"#":用来标识Velocity的脚本语句,比如:#set、#if 、#else、#end、#foreach、#end、#iinclude、#parse、#macro等;

”$":变量使用,如$name

使用示例:velocity

Apache FreeMarker

Go Template

go 原生的 text/template

使用示例:go template