Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CloneTemplate *template.Template
Functions ¶
func RenderTemplate ¶
func RenderTemplate(name string, args map[string]interface{}, basePath string, isPreview bool) revel.Result
name = index.html, search.html, cate.html, page.html basePath 表未用户主题的基路径, 如/xxx/public/upload/32323232/themes/theme1, 如果没有, 则表示用自带的 isPreview 如果是, 错误提示则显示系统的 500 错误详情信息, 供debug
Types ¶
type BlogTpl ¶
type BlogTpl struct { Template *template.Template PathContent map[string]string // path => content }
var BlogTplObject *BlogTpl
type ErrorResult ¶
Click to show internal directories.
Click to hide internal directories.