templates

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package templates contains the template loader and applier

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(name, target string, args interface{})

Append the template with the given name and the given args to the given object

func AppendObj

func AppendObj(name string, obj jquery.JQuery, args interface{})

AppendObj appends the template with the given name to the given object

func Apply

func Apply(name, target string, args interface{})

Apply the template with the given name and the given args to the given object

func ApplyObj

func ApplyObj(name string, obj jquery.JQuery, args interface{})

ApplyObj applies the template with the given name to the given object

func ApplyString

func ApplyString(name string, args interface{}) (string, error)

ApplyString executes the template into a string and returns the string

func Load

func Load(name string) *template.Template

Load the template with the given name

func LoadAll

func LoadAll()

LoadAll loads all the default templates

Types

This section is empty.

Jump to

Keyboard shortcuts

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