template

package
v0.0.0-...-0eb5dd4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderGolang

func RenderGolang(templateText string, params map[string]string) (string, error)

RenderGolang renders templateText with the params map as the top-level template parameter.

For example, namespace should be defined `{{ index . "namespace" }}` See the docs for more info: https://golang.org/pkg/text/template/

func RenderHandlebars

func RenderHandlebars(templateText string, params map[string]string) (string, error)

RenderHandlebars renders templateText with the params map as the top-level template parameter.

For example, namespace should be defined `{{ namespace }}` See the docs for more info: https://github.com/aymerick/raymond

func RenderPlush

func RenderPlush(templateText string, params map[string]string) (string, error)

RenderPlush renders templateText with the keys and values in params as top-level plush context variables.

For example, namespace should be defined `<%= namespace %>` See thee docs for more info: https://github.com/gobuffalo/plush

Types

This section is empty.

Jump to

Keyboard shortcuts

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