Command line interface to mustache template engine in Go. Basically a simple CLI wrapper for cbroglie/mustache. Works with YAML and JSON. Data can be piped in via stdin or passed in as a file name via an option.
See examples directory for a more in depth example of using JSON, YAML, and stdin.
Usage:
mustache [<data-file>] <template-path>
mustache <template-path>
Options:
-h --help - Show this message.
Arguments: - Path to data file.
<template-path> - Path to template file.
Examples:
mustache data-source.json template.mustache
mustache data-source.yaml template.mustache
cat data-source.json | mustache template.mustache
See also: EXAMPLES
If you need a build not in releases, you can either request it or build it yourself. Here is how you build it.
go get github.com/quantumew/mustache-cli
cd "$GOPATH/src/github.com/quantumew/mustache-cli"
make
mv mustache <in your path somewhere>