Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkupOnly ¶
func MarkupOnly(moc vecty.MarkupOrChild) *vecty.MarkupList
MarkupOnly returns the vecty.MarkupList contained in moc, or nil if none is found. It also returns nil if moc is a vecty.List that contains one or more vecty.ComponentOrHTML. If nil is returned, it is then safe to assert the type of moc as a vecty.ComponentOrHTML.
Types ¶
type StaticComponent ¶
type StaticComponent struct { vecty.Core Child vecty.ComponentOrHTML }
func RenderStoredChild ¶
func RenderStoredChild(child vecty.ComponentOrHTML) *StaticComponent
RenderStoredChild is a helper which provides a Component which wraps the provided ComponentOrHTML. It exists as a workaround to a vecty issue.
func (*StaticComponent) Render ¶
func (c *StaticComponent) Render() vecty.ComponentOrHTML
func (*StaticComponent) SkipRender ¶
func (c *StaticComponent) SkipRender(prev vecty.Component) bool
Click to show internal directories.
Click to hide internal directories.