webtemplate

package
v0.0.0-...-bd13ba8 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTML_TEMPLATE templateType = iota
	JSON_TEMPLATE
	XML_TEMPLATE
	TEXT_TEMPLATE
)
View Source
const (
	XML_TEMPLATE_EXTENSION  = ".txml"
	JSON_TEMPLATE_EXTENSION = ".tjson"
	HTML_TEMPLATE_EXTENSION = ".thtml"
	TEXT_TEMPLATE_EXTENSION = ".ttxt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HtmlTemplate

type HtmlTemplate struct {
	Template
}

func (*HtmlTemplate) RenderHTMLTemplate

func (this *HtmlTemplate) RenderHTMLTemplate(writer *http.ResponseWriter, filepathList []string, output interface{}, errorInfo map[string][]string, useLayout bool, layoutName string) error

type Indform

type Indform struct {
	Name     string
	Password string
}

type Template

type Template struct {
	Templatetype templateType
	FilePath     string
	FileContent  string
	HasLoad      bool
}

func (*Template) Render

func (this *Template) Render(writer *http.ResponseWriter, filepathList []string, output interface{}, errorInfo map[string][]string, useLayout bool, layoutName string) error

Jump to

Keyboard shortcuts

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