ytt

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2019 License: Apache-2.0

README

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
    • makses 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

Development

./hack/build.sh
./ytt template -f template.yml
./ytt template -R -f examples/eirini --output tmp/eirini --input examples/eirini/input.yml

Tests:

./hack/test-all.sh
./hack/test-unit.sh
./hack/test-e2e.sh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL