Documentation ¶
Overview ¶
Package server contains helper functions and structs for the frontend server.
Package server contains helper functions and structs for the frontend server.
Index ¶
- Variables
- func Call(context *frontend.Context, f func(io.Writer, *TmplArgs) error) (answer []byte, err error)
- func SetLanguageList(list []language.Code) error
- type FieldType
- type Form
- type FormField
- type FormOption
- type Link
- type TmplArgs
- func (a *TmplArgs) AngularVersion() string
- func (a *TmplArgs) CanonicalUrl() string
- func (args *TmplArgs) GetLanguage(code language.Code) string
- func (args *TmplArgs) GetLanguageOptions() ([]*FormOption, error)
- func (a *TmplArgs) LoggedIn() bool
- func (a *TmplArgs) Nest(data interface{}) *nestedArgs
- func (a *TmplArgs) Title() (string, error)
- func (a *TmplArgs) UserName() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ExtractTypeOptions []*FormOption
View Source
var FormTmpl = templates.Parse("templates/form.html")
View Source
var PleaseSelect = &FormOption{ Key: i18n.Key("Please select"), }
Functions ¶
func SetLanguageList ¶
Types ¶
type Form ¶
type FormOption ¶
type TmplArgs ¶
type TmplArgs struct { Data map[string]interface{} Css string // "extract" (default), "form", or other .scss file Angular bool // angular script AngularLocal bool // angular local instead of CDN Context *frontend.Context Description i18n.Key DescriptionLitteral string // fallback if i18n.Key is not defined localizer.Localizer }
func (*TmplArgs) AngularVersion ¶
func (*TmplArgs) CanonicalUrl ¶
func (*TmplArgs) GetLanguageOptions ¶
func (args *TmplArgs) GetLanguageOptions() ([]*FormOption, error)
Click to show internal directories.
Click to hide internal directories.