MCPcopy
hub / github.com/gofiber/fiber / ViewBind

Method ViewBind

res_interface_gen.go:101–101  ·  view source on GitHub ↗

ViewBind Add vars to default view var map binding to template engine. Variables are read by the Render method and may be overwritten.

(vars Map)

Source from the content-addressed store, hash-verified

99 // ViewBind Add vars to default view var map binding to template engine.
100 // Variables are read by the Render method and may be overwritten.
101 ViewBind(vars Map) error
102 // getLocationFromRoute gets the URL location from a route using parameters.
103 // Nil receivers and missing routes return ErrNotFound to match Route.URL semantics.
104 getLocationFromRoute(route *Route, params Map) (string, error)

Implementers 1

Calls

no outgoing calls