Skip to content
YAML templating tool that works on YAML structure instead of text
Branch: master
Clone or download
Latest commit 878facd Apr 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd
docs correct overlay docs mentioning @overlay/match exists=... Mar 18, 2019
examples
hack add e2e test for overlaying on top of regular yaml files Mar 20, 2019
pkg set version to 0.6.0 Apr 12, 2019
vendor
.gitignore
CONTRIBUTING.md
Gopkg.lock init Mar 1, 2019
Gopkg.toml
LICENSE
NOTICE
README.md mention ibm blog post Mar 19, 2019

README.md

ytt (YAML Templating Tool)

ytt is a templating tool that understands YAML structure allowing you to focus on your data instead of how to properly escape it.

Features:

  • templating works on YAML structure (instead of text)
    • eliminates variety of problems such as invalid YAML formatting, escaping, etc.
  • syntactic sugar for single YAML node conditionals and for loops
    • makes it easier to read densely conditioned templated
  • templates are themselves valid YAML files
    • makes them friendly to existing editors and YAML tools
  • includes sandboxed "fully featured" Pythonic programming language
    • compared to what's exposed in go/template for example

Try out online playground or download latest binaries from Releases page (playground is included via ytt playground command).

Docs

Try it

ytt template -R -f examples/playground/example-demo/
ytt template -R -f examples/playground/example-demo/ --output tmp/

See examples/playground/ for examples shown on get-ytt.io.

Development

./hack/build.sh
./hack/test-unit.sh
./hack/test-e2e.sh
./hack/test-all.sh
You can’t perform that action at this time.