Documentation
¶
Overview ¶
You can use the "packr clean" command to clean up this, and any other packr generated files.
Index ¶
Constants ¶
View Source
const ( //AssetPattern the pattern for the static file rout AssetPattern = "/assets" //AssetHandlerPattern the pattern for serving asset files thru handler AssetHandlerPattern = "/assets/*" //AssetRoot the root dir of the static asset files AssetRoot = "web/assets" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct {
TStore template.TStore
Templates *packr.Box
Assets http.FileSystem
DS data.Datastore
Services *services.Services
MessageLocator *msg.MessageLocator
EF models.EntityFactory
}
Env the environment
type EnvContext ¶
EnvContext extends echo.Context to provide the application environment
func (*EnvContext) FormValueRequired ¶
func (ec *EnvContext) FormValueRequired(formValue string) string
FormValueRequired ...
func (*EnvContext) RequestData ¶
func (ec *EnvContext) RequestData() request.RData
RequestData get RequestData from context
type TData ¶
type TData map[string]interface{}
TData map holding data for page templates
func NewTemplateDataWithRequestData ¶
NewTemplateDataWithRequestData return view data map filled with context data
Click to show internal directories.
Click to hide internal directories.