tmpl(8)

tmpl8

Command line interface to go's text/template library

Usage

tmpl [options]

Overview

This program is a command line interface to Go's text/template library. It can be used by passing in a set of JSON-encoded data and a list of template paths ending in a .tmpl extension. The templates are processed and their results are saved to the filename with the .tmpl extension removed.

Once your data set gets larger, it may be useful to move it to its own file instead of specifying it on the command line. To use a data file instead of raw JSON on the command line, use the -data argument but prefix your path with an @ symbol.

Options

-data <string> JSON data.

-help

Display usage information and exit.

Releases

Unchanged in 5 releases since Debian 9 (Stretch).

  1. 9–13

Author

Alexandre Viau ([email protected])

From tmpl 0.0~git20160209.0.8e77bc5-7+b18 in Debian 13 (Trixie). Parsed by carta from the page's man source.