template

package
v0.0.0-...-cb38503 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATIC_URL     string = "/static/"
	STATIC_ROOT    string = "static/"
	TEMPLATE_DIR   string = "html/"
	PARENT_PACKAGE string = "test"
)

Variables

This section is empty.

Functions

func GetAbsDir

func GetAbsDir(a ...string) string

func Render

func Render(c web.C, w http.ResponseWriter, r *http.Request, tmpls []string, ctx *Context)

func StaticHandler

func StaticHandler(w http.ResponseWriter, r *http.Request)

func UpdateTemplateList

func UpdateTemplateList(tmpls []string) []string

Types

type Context

type Context struct {
	Values map[string]interface{}
}

func NewContext

func NewContext() *Context

func (*Context) Add

func (c *Context) Add(key string, value interface{})

Jump to

Keyboard shortcuts

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