Documentation ¶
Index ¶
- Variables
- func Author(name string)
- func Break() string
- func Charset(charSet CharSet) (err error)
- func Checkbox(name string, value string) string
- func ColorPicker(name string, value string) string
- func Comment(comment string) string
- func Copyright(value string)
- func DatePicker(name string, values ...string) string
- func DateTimePicker(name string, value string) string
- func Description(value string)
- func EmailField(name string, value string) string
- func EmbedScript(code string, async ...bool)
- func Escape(val interface{}) string
- func Image(src string, alt ...string) string
- func Meta(metaType string, content string)
- func MonthDatePicker(name string, value string) string
- func NumberPicker(name string, values ...string) string
- func PasswordField(name string, value ...string) string
- func PreloadScript(href string, async ...bool)
- func PreloadStylesheet(href string)
- func Radio(name string, value string) string
- func RangePicker(name string, values ...string) string
- func SearchField(name string, value string) string
- func SetContentType(writer io.Writer, mimeName client.Mime)
- func TextField(name string, value ...string) string
- func TimeField(name string, value string) string
- func Title(name string) (err error)
- func UrlField(name string, value string) string
- func Value(value interface{}) string
- func WeekField(name string, value string) string
- type AfterActionFormElement
- type AfterAttributesFormElement
- type AfterClassFormElement
- type AfterIdElement
- type AfterIdFormElement
- type AfterMethodFormElement
- type CharSet
- type Element
- func A(href string) *Element
- func Abbreviation(title string) *Element
- func Address() *Element
- func Article() *Element
- func Aside() *Element
- func Code() *Element
- func Details(open ...bool) *Element
- func Div() *Element
- func Emphasis() *Element
- func Figure() *Element
- func FigureCaption() *Element
- func Footer() *Element
- func H1() *Element
- func H2() *Element
- func H3() *Element
- func H4() *Element
- func H5() *Element
- func H6() *Element
- func Header() *Element
- func Input() *Element
- func KeyboardInput() *Element
- func Main() *Element
- func Mark() *Element
- func Navigation() *Element
- func NewElement(tag HtmlTag) *Element
- func Paragraph() *Element
- func SampleOutput() *Element
- func Section() *Element
- func Span() *Element
- func Strong() *Element
- func Summary() *Element
- func Time(datetime *time_.Time, layout ...string) *Element
- func Variable() *Element
- type FinalFormElement
- type FormElement
- type Html
- type HtmlTag
- type ListElement
- type RenderElement
- type RenderStack
- type RenderStackHolder
- type SelfElement
- type SubmitElement
- type Tag
- type UnsafeString
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetaInformationAlreadySuppliedError = errors.New("basic meta information already supplied") CharsetAlreadyDefinedError = errors.New("charset already defined") )
View Source
var ( Utf_8 = CharSet{"UTF-8"} Iso_8859_1 = CharSet{"UTF-8"} )
Functions ¶
func ColorPicker ¶
func DatePicker ¶
func DateTimePicker ¶
func Description ¶
func Description(value string)
func EmailField ¶
func EmbedScript ¶
func MonthDatePicker ¶
func NumberPicker ¶
func PasswordField ¶
func PreloadScript ¶
func PreloadStylesheet ¶
func PreloadStylesheet(href string)
func RangePicker ¶
func SearchField ¶
Types ¶
type AfterActionFormElement ¶
type AfterActionFormElement AfterClassFormElement
func (*AfterActionFormElement) Get ¶
func (element *AfterActionFormElement) Get() *AfterMethodFormElement
func (*AfterActionFormElement) Post ¶
func (element *AfterActionFormElement) Post() *AfterMethodFormElement
type AfterAttributesFormElement ¶
type AfterAttributesFormElement AfterMethodFormElement
func (*AfterAttributesFormElement) Value ¶
func (element *AfterAttributesFormElement) Value(value interface{}, submitElement ...*SubmitElement) string
type AfterClassFormElement ¶
type AfterClassFormElement AfterIdFormElement
func (*AfterClassFormElement) Action ¶
func (element *AfterClassFormElement) Action(name string) *AfterActionFormElement
func (*AfterClassFormElement) Class ¶
func (element *AfterClassFormElement) Class(name ...string) *AfterClassFormElement
type AfterIdElement ¶
type AfterIdElement Element
func (*AfterIdElement) Attributes ¶
func (element *AfterIdElement) Attributes(attribs ...attribs.TagAttr) *AfterIdElement
func (*AfterIdElement) Class ¶
func (element *AfterIdElement) Class(value string) *AfterIdElement
func (*AfterIdElement) Value ¶
func (element *AfterIdElement) Value(value interface{}) string
type AfterIdFormElement ¶
type AfterIdFormElement FormElement
func (*AfterIdFormElement) Class ¶
func (element *AfterIdFormElement) Class(name ...string) *AfterClassFormElement
type AfterMethodFormElement ¶
type AfterMethodFormElement AfterActionFormElement
func (*AfterMethodFormElement) Attributes ¶
func (element *AfterMethodFormElement) Attributes(attrib ...attribs.TagAttr) *AfterAttributesFormElement
func (*AfterMethodFormElement) Value ¶
func (element *AfterMethodFormElement) Value(value interface{}, submitElements ...*SubmitElement) string
type Element ¶
type Element struct { Id_ *attribs.Id Class_ []attribs.Class Attributes_ []attribs.TagAttr Content interface{} Tag // contains filtered or unexported fields }
func Abbreviation ¶
func FigureCaption ¶
func FigureCaption() *Element
func KeyboardInput ¶
func KeyboardInput() *Element
func Navigation ¶
func Navigation() *Element
func NewElement ¶
func SampleOutput ¶
func SampleOutput() *Element
func (*Element) Class ¶
func (element *Element) Class(value string) *AfterIdElement
func (*Element) Id ¶
func (element *Element) Id(name string) *AfterIdElement
type FinalFormElement ¶
type FinalFormElement AfterActionFormElement
type FormElement ¶
type FormElement Element
func Form ¶
func Form() *FormElement
func NewFormElement ¶
func NewFormElement() *FormElement
func (*FormElement) Action ¶
func (element *FormElement) Action(path string) *AfterActionFormElement
func (*FormElement) Id ¶
func (element *FormElement) Id(name string) *AfterIdFormElement
type ListElement ¶
type ListElement Element
func NewListElement ¶
func NewListElement(tag HtmlTag) *ListElement
func OrderedList ¶
func OrderedList() *ListElement
func UnorderedList ¶
func UnorderedList() *ListElement
func (*ListElement) Value ¶
func (element *ListElement) Value(items ...interface{}) string
type RenderElement ¶
type RenderElement struct {
*AfterIdElement
}
type RenderStack ¶
type RenderStack struct {
// contains filtered or unexported fields
}
type RenderStackHolder ¶
type RenderStackHolder struct {
// contains filtered or unexported fields
}
func CreateRenderStackHolder ¶
func CreateRenderStackHolder(root *RenderStack, writer io.Writer) *RenderStackHolder
func Writer ¶
func Writer(sessionId client.SessionId) (renderStackHolder *RenderStackHolder, ok bool)
func (*RenderStackHolder) Body ¶
func (renderStackHolder *RenderStackHolder) Body() interface{}
func (*RenderStackHolder) HeadElements ¶
func (renderStackHolder *RenderStackHolder) HeadElements() []interface{}
func (*RenderStackHolder) Writer ¶
func (renderStackHolder *RenderStackHolder) Writer() io.Writer
type SelfElement ¶
type SelfElement Element
func NewSelfElement ¶
func NewSelfElement(tag HtmlTag, selfTerminate bool) *SelfElement
func (SelfElement) Value ¶
func (element SelfElement) Value() string
type SubmitElement ¶
type SubmitElement Element
func Submit ¶
func Submit(value string, classes ...string) *SubmitElement
Click to show internal directories.
Click to hide internal directories.