3 ms·
There have been times I've wanted to templatize my configuration but I don't want to do it with text-based templates but templates within the configuration file
by epage 8y ago
There have been times I've wanted to templatize my configuration but I don't want to do it with text-based templates but templates within the configuration files syntax (be it yaml, toml, or something else). Not sure what this is called, I've been calling it "structural templating".
So far the only things close to this are
- Azure pipeline's syntax: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops https://docs.microsoft.com/en-us/azure/devops/pipelines/proc...
- Something called Jasonette: https://docs.jasonette.com/templates/ https://docs.jasonette.com/templates/
- Something called Jsonnet: https://jsonnet.org/ https://jsonnet.org/
Azure Pipeline's approach I think is closest to what I've been looking for.
Anything else in this space?
- Edmond 8y agowe're working on this: https://www.youtube.com/watch?v=4yepPOznakk https://www.youtube.com/watch?v=4yepPOznakk http://codesolvent.com/config-node/ http://codesolvent.com/config-node/
- wryun 8y agoI prefer https://github.com/taskcluster/json-e https://github.com/taskcluster/json-e Has the advantage/disadvantage that it's still valid json/yaml I wrote a scary command line wrapper for it: https://wryun.github.io/rjsone/ https://wryun.github.io/rjsone/ Has libs for Python, Go, and JS, and there's a bazel interface.