6 ms·
> ...but the goal is that you should choose whatever templating language you already use for your website most common templating languages (especially textual
by cppforlife 7y ago
> ...but the goal is that you should choose whatever templating language you already use for your website
most common templating languages (especially textual templating languages like go's text/template lib) are not great at templating structures (yaml, json, etc.). you quickly run into indentation, escaping and similar problems.
> I disagree with the way kustomize and jsonnet approach this, learning a new templating language is almost never the right solution.
i've recently open sourced a tool ytt (https://get-ytt.io https://get-ytt.io) that is yaml structure aware, to avoid problems mentioned above. i do agree that learning new tool/language is an overhead but it's been interesting to try to build a tool on top of common tech, yaml and python-like language (starlark), to ease the learning curve.
good to see that your tool allows integration with other templating tools.
- colinchartier 7y agoIf you'd like to integrate your templater with sanic, feel free to adapt the existing golang templater [1] and push your version to docker hub -- Let me know if you do, I'll maintain a list of available templaters. [1] https://github.com/distributed-containers-inc/sanic-templater-golang https://github.com/distributed-containers-inc/sanic-template...