Documentation ¶
Index ¶
- Constants
- Variables
- func CompileTemplate() error
- func CreateSessionManager(app *appcontext.AppContext, funcmap template.TemplateFuncMap)
- func RedirectTo(app *appcontext.AppContext, path string)
- func SetDefaultTemplateDir(workDir string)
- func SetTemplateDir(folderPath string)
- type RenderInfo
- type RenderManager
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
}
Click to show internal directories.
Click to hide internal directories.