https://github.com/localvoid/gorender
CLI util to render files with Go `text.template` template engine
https://github.com/localvoid/gorender
Last synced: about 1 year ago
JSON representation
CLI util to render files with Go `text.template` template engine
- Host: GitHub
- URL: https://github.com/localvoid/gorender
- Owner: localvoid
- License: mit
- Created: 2014-08-09T17:41:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-22T14:43:31.000Z (over 10 years ago)
- Last Synced: 2025-01-25T06:25:19.736Z (about 1 year ago)
- Language: Go
- Size: 133 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gorender
CLI util to render templates with [Go](http://golang.org)
[text.Template](http://golang.org/pkg/text/template/) template engine.
## Install
```sh
$ go install github.com/localvoid/gorender
```
## Usage
```sh
$ gorender -d data.json template.txt
```
## Flags
### -d [file]
Type: `String`
Data file in JSON format.
### -i [pattern]
Type: `String`
Include templates.
### -b [name]
Type: `String`
Base template name.
### -html
Type: `Boolean`
Default: `false`
Use [html.Template](http://golang.org/pkg/text/template/) package to
render templates.