template

package
v0.0.0-...-51f07d3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(template string, playload *drone.Payload) (string, error)

Render parses and executes a template, returning the results in string format.

func RenderTrim

func RenderTrim(template string, playload *drone.Payload) (string, error)

RenderTrim parses and executes a template, returning the results in string format. The result is trimmed to remove left and right padding and newlines that may be added unintentially in the template markup.

func Write

func Write(w io.Writer, template string, playload *drone.Payload) error

Write parses and executes a template, writing the results to writer w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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