An open API service indexing awesome lists of open source software.

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

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.