Documentation ¶
Index ¶
- func Game(env *Env, w http.ResponseWriter, r *http.Request) (int, error)
- func Live(ws *websocket.Conn)
- func LoadTemplates(path string) map[string]*template.Template
- func RenderTemplate(env *Env, w http.ResponseWriter, name string, data interface{}) error
- func Static(env *Env, w http.ResponseWriter, r *http.Request) (int, error)
- type Env
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadTemplates ¶
LoadTemplates loads all templates into memory (layout and content)
func RenderTemplate ¶
func RenderTemplate(env *Env, w http.ResponseWriter, name string, data interface{}) error
RenderTemplate renders an HTML template from the cache using provided data
Types ¶
Click to show internal directories.
Click to hide internal directories.