MCPcopy Create free account
hub / github.com/kataras/iris / Component

Function Component

aliases.go:297–301  ·  view source on GitHub ↗

Component returns a new Handler which can be registered as a main handler for a route. It's a shortcut handler that renders the given component as HTML through Context.RenderComponent.

(component context.Component)

Source from the content-addressed store, hash-verified

295// Component returns a new Handler which can be registered as a main handler for a route.
296// It's a shortcut handler that renders the given component as HTML through Context.RenderComponent.
297func Component(component context.Component) Handler {
298 return func(ctx Context) {
299 ctx.RenderComponent(component)
300 }
301}
302
303// PrefixDir returns a new FileSystem that opens files
304// by adding the given "prefix" to the directory tree of "fs".

Callers

nothing calls this directly

Calls 1

RenderComponentMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…