gotmpl

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 6 Imported by: 0

README

Gotmpl

Tiny CLI template engine for generating files quickly

Gotmpl brings Go's Templates to your terminal along with some helpful functions courtesy of Sprig. Usage is extremely simple, after installing the binary, you can use it like so:

gotmpl render --tmpl ./template.tmpl --data ./data.json > ./output.txt

Features

  • Sprig functions
  • Support for JSON, YAML, and TOML data files

Installation

Homebrew
brew install hay-kot/gotmpl-tap/gotmpl
Go
go install https://github.com/hay-kot/gotmpl

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
app
commands
Package commands contains the CLI commands for the application
Package commands contains the CLI commands for the application
commands/engine
Package engine provides a simple template engine for Go Templates.
Package engine provides a simple template engine for Go Templates.

Jump to

Keyboard shortcuts

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