guludo / ytt

YAML templating tool that works on YAML structure instead of text

Home Page:https://get-ytt.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ytt (YAML Templating Tool)

ytt (pronounced spelled out) 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)
    • which 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 templates
  • templates are themselves valid YAML files
    • makes them friendly to existing editors and YAML tools
  • includes sandboxed "fully featured" Python-like programming language
  • allows configuration modularization via functions and libraries

Try it

Try out online playground or download latest binaries from Releases page and run it locally:

ytt -f examples/playground/example-demo/
ytt -f examples/playground/example-demo/ --output-directory tmp/

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

Development

Consult docs/dev.md for build instructions, code structure details.

About

YAML templating tool that works on YAML structure instead of text

https://get-ytt.io

License:Apache License 2.0


Languages

Language:Go 95.4%Language:CSS 2.1%Language:JavaScript 1.2%Language:HTML 0.8%Language:Shell 0.6%