Documentation
¶
Index ¶
- Variables
- func AddMeta(name, content string)
- func AddStylesheet(url string)
- func LoadModule(names []string, url string) []js.Value
- func LoadModuleAs(name string, url string) js.Value
- func LoadScript(url string)
- func Render(q string, c Component)
- func RenderBody(c Component)
- func Rerender(c Component)
- func S(s ...interface{}) string
- func SetTitle(title string)
- type AttrMap
- type ClassMap
- type Component
- type ComponentOrHTML
- type Core
- type HTML
- type Markup
- type Markups
- type Mounter
- type Node
- type Patches
- type Unmounter
Constants ¶
This section is empty.
Variables ¶
View Source
var PROPS = []string{"value", "selected", "checked", "data"}
PROPS ...
View Source
var ( // VerboseMode ... VerboseMode bool )
Functions ¶
func AddStylesheet ¶
func AddStylesheet(url string)
AddStylesheet adds an external stylesheet to the document.
func LoadModule ¶
LoadModule equivalent `import {'name1', 'name2', ...} from 'url'`
func LoadModuleAs ¶ added in v1.0.4
LoadModuleAs equivalent `import * as 'name' from 'url'`
Types ¶
type Component ¶
type Component interface { Render() HTML // contains filtered or unexported methods }
Component ...
type Markup ¶
type Markup interface {
// contains filtered or unexported methods
}
Markup ...
func UnsafeHTML ¶ added in v1.0.8
UnsafeHTML make DOM-Elements from HTML string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.