template

package
v0.0.0-...-68da624 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2014 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package template consolidates various templating utilities used throughout different parts of vulcan.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(in io.Reader, out io.Writer, request *http.Request) error

Apply reads a template string from the provided reader, applies variables from the provided request object to it and writes the result into the provided writer.

Template is standard Go's http://golang.org/pkg/text/template/.

func ApplyString

func ApplyString(in string, out io.Writer, request *http.Request) error

ApplyString applies variables from the provided request object to the provided template string and writes the result into the provided writer.

Template is standard Go's http://golang.org/pkg/text/template/.

Types

This section is empty.

Jump to

Keyboard shortcuts

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