Wang-Kai / spade

Command line tool that render go template with values from YAML files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spade - CLI tool for Go template

Command line tool that render go template with values from YAML files.

Install

go get github.com/Wang-Kai/spade

Usage

Say you have a template file like this:

Hi, my name {{ .name }}, i am {{ .age }} years ago.

add values.yaml YAML file like this one:

name: steve
age: 100

You can compile the template like this:

spade -f ./example/template -v ./example/values.yaml

About

Command line tool that render go template with values from YAML files.

License:MIT License


Languages

Language:Go 89.1%Language:Makefile 10.9%