template

package
Version: v0.7.0 Latest Latest
Warning

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

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

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL