Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.49 KB

README.md

File metadata and controls

48 lines (32 loc) · 1.49 KB

GitHub release

Build Status GitHub issues Go Report Card

Temple

Sick of sed? Peaked about perl? Use temple to substitute your variables!

Installation

Binaries

I have pre-built binaries for several platform already. They are available on the releases page.

Source

If you have go v1.6 installed, then you can build the binary with the following command:

$ go get -u -v docwhat.org/temple

Usage

usage: temple [<flags>] <template>

Fast and simple templating engine

Flags:
  -h, --help                 Show context-sensitive help (also try --help-long and --help-man).
      --version              Show application version.
  -j, --json-data=JSON-DATA  A JSON file to use via the {{json.<foo>}} interface (Env: TEMPLE_JSON_DATA_FILE)
  -H, --html                 Use HTML templating instead of text templating (Env: TEMPLE_HTML)

Args:
  <template>  A Go Template file.

Template Syntax

Temple uses GO Text Templates.