diff --git a/docs/web/app.wasm b/docs/web/app.wasm index e304c9450..02160ae0e 100755 Binary files a/docs/web/app.wasm and b/docs/web/app.wasm differ diff --git a/docs/web/documents/reference.html b/docs/web/documents/reference.html index d02c125a1..3ca4df1b1 100644 --- a/docs/web/documents/reference.html +++ b/docs/web/documents/reference.html @@ -15,7 +15,7 @@ - + @@ -125,7 +125,7 @@

Index ▾

-
func AppendClass(class, c string) string
+
func AppendClass(class string, v ...string) string
func Broadcast(s *State)
@@ -176,9 +176,15 @@

Index ▾

func Route(path string, c Composer)
+
func RouteFunc(path string, newComponent func() Composer)
+ +
func RouteWithRegexp(pattern string, c Composer)
+
func RouteWithRegexpFunc(pattern string, newComponent func() Composer)
+ +
func RunWhenOnBrowser()
@@ -1566,13 +1572,13 @@

Variables

-

func AppendClass +

func AppendClass

-
func AppendClass(class, c string) string
-

AppendClass adds c to the given class string. +

func AppendClass(class string, v ...string) string
+

AppendClass adds values to the given class string. @@ -1811,15 +1817,14 @@

func func Route +

func Route

func Route(path string, c Composer)
-

Route associates the type of the given component to the given path. -

When a page is requested and matches the route, a new instance of the given -component is created before being displayed. +

Route set the type of component to be mounted when a page is navigated to the +given path. @@ -1827,17 +1832,44 @@

func func RouteWithRegexp +

func RouteFunc + + + +

+
func RouteFunc(path string, newComponent func() Composer)
+

RouteFunc set a function that creates the component to be mounted when a page +is navigated to the given path. + + + + + + + +

func RouteWithRegexp

func RouteWithRegexp(pattern string, c Composer)
-

RouteWithRegexp associates the type of the given component to the given -regular expression pattern. -

Patterns use the Go standard regexp format. -

When a page is requested and matches the pattern, a new instance of the given -component is created before being displayed. +

RouteWithRegexp set the type of component to be mounted when a page is +navigated to a path that matches the given pattern. + + + + + + + +

func RouteWithRegexpFunc + + + +

+
func RouteWithRegexpFunc(pattern string, newComponent func() Composer)
+

RouteWithRegexpFunc set a function that creates the component to be mounted +when a page is navigated to a path that matches the given pattern. @@ -2787,7 +2819,7 @@

type type Environment +

type Environment @@ -24968,7 +25000,7 @@

func type Handler +

type Handler @@ -25093,6 +25125,13 @@

type // would be the URL for an OAuth authentication. InternalURLs []string + // The URLs of the origins to preconnect in order to improve the user + // experience by preemptively initiating a connection to those origins. + // Preconnecting speeds up future loads from a given origin by preemptively + // performing part or all of the handshake (DNS+TCP for HTTP, and + // DNS+TCP+TLS for HTTPS origins). + Preconnect []string + // The cache that stores pre-rendered pages. // // Default: A LRU cache that keeps pages up to 24h and have a maximum size @@ -25152,7 +25191,7 @@

type func (*Handler) ServeHTTP +

func (*Handler) ServeHTTP @@ -25166,7 +25205,7 @@

func (*Handler) type Icon +

type Icon @@ -26795,7 +26834,7 @@

Subdirectories