templateManager

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LAYOUT_BODY_TAG = "{{ @RenderBody() }}"
)

Variables

View Source
var LAYOUT_DATA string
View Source
var LAYOUT_TEMPLATE string //layout模板路径
View Source
var PthSep string
View Source
var TMPLATE_DIR string

Functions

func Initialize

func Initialize()

Initialize the templates. args

func Render

func Render(ctlName, actName string, ViewData map[string]interface{}) ([]byte, error)

Render execute the template. if template not found , renturn nil,error

Types

This section is empty.

Jump to

Keyboard shortcuts

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