Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
NakedContent bool
Page *page
Sidebar *page
NoBoost bool
HotReload bool
MainDomain bool
RequestInfo RequestInfo
CurrentSection string
Title string
UserID string
UserLoggedIn bool
UserHasAccount bool
HasNews bool
Preferences *db.UserPreference
CSRFToken string
Data ContextData
}
type ContextData ¶
type ContextData map[string]interface{}
type Pages ¶
type Pages struct {
// contains filtered or unexported fields
}
Pages holds parsed pages ready for rendering
func (*Pages) RegisterHelpers ¶
type RequestInfo ¶
type RequestInfo interface {
// Request returns `*http.Request`.
Request() *http.Request
// Scheme returns the HTTP protocol scheme, `http` or `https`.
Scheme() string
}
RequestInfo is a subset of echo.Context
Click to show internal directories.
Click to hide internal directories.