render

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_TEMPLATE_FOLDER = "/views/"
	INCLUDE_FOLDER          = "include"
	LAYOUT_FOLDER           = "layout"
	VIEW_FOLDER             = "view"
	DEFAULT_INIT_SIZE       = 20
)

Variables

View Source
var USE_RENDER_PROCESS bool

Functions

func CompileTemplate

func CompileTemplate() error

func CreateSessionManager

func CreateSessionManager(app *appcontext.AppContext, funcmap template.TemplateFuncMap)

func RedirectTo

func RedirectTo(app *appcontext.AppContext, path string)

func SetDefaultTemplateDir

func SetDefaultTemplateDir(workDir string)

func SetTemplateDir

func SetTemplateDir(folderPath string)

Types

type RenderInfo

type RenderInfo struct {
	MemorycashManager *memorycash.MemoryCashManager
	Writer            *http.ResponseWriter
	FinishSingal      chan int
	TemplateList      map[string]*webtemplate.Template
	TemplateCount     int
	OutPutData        interface{}
	ErrorInfo         map[string][]string
	UrlPath           string
	UseLayout         bool
	LayoutName        string
}

func CreateRenderInfo

func CreateRenderInfo(app *appcontext.AppContext) *RenderInfo

func (*RenderInfo) InitRenderInfo

func (this *RenderInfo) InitRenderInfo(app *appcontext.AppContext)

func (*RenderInfo) RenderProcess

func (this *RenderInfo) RenderProcess() interface{}

type RenderManager

type RenderManager struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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