Skip to content
/ gotpl Public
forked from tsg/gotpl

CLI tool for Golang templates

License

jjo/gotpl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotpl - CLI tool for Golang templates

Release gotpl project

Command line tool that compiles Golang templates with values from YAML files.

Inspired by Python/Jinja2's j2cli.

Install

go get github.com/tsg/gotpl

Usage

Say you have a template file like this:

{{.first_name}} {{.last_name}} is {{.age}} years old.

and a user.yml YAML file like this one:

first_name: Max
last_name: Mustermann
age: 30

You can compile the template like this:

gotpl template < user.yml

About

CLI tool for Golang templates

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 83.3%
  • Makefile 10.5%
  • Dockerfile 6.2%