Documentation ¶
Overview ¶
package html keeps the embedding of local (./) html file
if you want to add a template page use this template, modify, and place them accordingly:
var ( ... <template-name-lowercase> = parse("<filepath-relative-to-this-file>.html") ) ... type <template-name-capitalized>Params struct { ... // anything that goes here becomes a dot parameter to its template } func <template-name-capitalized>(w io.Writer, p <template-name-capitalized>Params) error { return <template-name-lowercase>.Execute(w, p) }
Index ¶
- func Account(w io.Writer, p AccountParams) error
- func AssetsFS() http.Handler
- func Home(w io.Writer, p HomeParams) error
- func Privacy(w io.Writer, p PrivacyParams) error
- func Profile(w io.Writer, p ProfileParams) error
- func Settings(w io.Writer, p SettingsParams) error
- func UserLogin(w io.Writer, p UserLoginParams) error
- func UserRegister(w io.Writer, p UserRegisterParams) error
- type AccountParams
- type HomeParams
- type PrivacyParams
- type ProfileParams
- type SettingsParams
- type UserLoginParams
- type UserRegisterParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserRegister ¶
func UserRegister(w io.Writer, p UserRegisterParams) error
Types ¶
type AccountParams ¶
type HomeParams ¶
type HomeParams struct { Title string Name string DisplayForm bool Posts []pensive.PostPublic }
type UserLoginParams ¶
type UserLoginParams struct{}
type UserRegisterParams ¶
type UserRegisterParams struct{}
Click to show internal directories.
Click to hide internal directories.