gorender

command module
v0.0.0-...-3055eb0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 10 Imported by: 0

README

gorender

Golang text/html template render command line utility

Go Report Card

How to install

$ go get -u github.com/major1201/gorender

How to use

Flags
-h, --help

Show help

-v, --version

Print the version

-a, --arguments [value]

Set extra arguments to be rendered to the template, overrides all json/yaml/toml file arguments

Format: key=value

This flag can be used multiple times.

-o, --output [path]

Write output to a file instead of to stdout

-i, --in-place

Write output in place of the template file

--json [path]

Use a json argument file

--yaml, --yml [path]

Use a yaml argument file

--toml [path]

Use a toml argument file

--html

Enable html template engine which automatically secures HTML output against certain attacks

Example
$ gorender --json example.json -a name=override -o /tmp/output.txt example.txt.tmpl

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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