Documentation ¶
Index ¶
- type Manager
- type Renderer
- type RendererManager
- type WatcherManager
- func (wm *WatcherManager) FromRequest(r *http.Request, page string, username string) Renderer
- func (wm *WatcherManager) GetBlock(page, block string) Renderer
- func (wm *WatcherManager) GetComponent(path, name string) Renderer
- func (wm *WatcherManager) GetPage(page, username string) Renderer
- func (wm *WatcherManager) Refresh() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RendererManager ¶
type RendererManager struct {
// contains filtered or unexported fields
}
func ParseTemplates ¶
func (RendererManager) FromRequest ¶
func (RendererManager) GetBlock ¶
func (rm RendererManager) GetBlock(page, block string) Renderer
func (RendererManager) GetComponent ¶
func (rm RendererManager) GetComponent(path, name string) Renderer
func (RendererManager) GetPage ¶
func (rm RendererManager) GetPage(page, username string) Renderer
type WatcherManager ¶
type WatcherManager struct {
// contains filtered or unexported fields
}
func NewWatcher ¶
func NewWatcher(dir string, fm template.FuncMap) (*WatcherManager, error)
func (*WatcherManager) FromRequest ¶
func (*WatcherManager) GetBlock ¶
func (wm *WatcherManager) GetBlock(page, block string) Renderer
func (*WatcherManager) GetComponent ¶
func (wm *WatcherManager) GetComponent(path, name string) Renderer
func (*WatcherManager) GetPage ¶
func (wm *WatcherManager) GetPage(page, username string) Renderer
func (*WatcherManager) Refresh ¶
func (wm *WatcherManager) Refresh() error
Click to show internal directories.
Click to hide internal directories.