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

Method FallbackView

core/router/party.go:457–457  ·  view source on GitHub ↗

FallbackView registers one or more fallback views for a template or a template layout. Usage: FallbackView(iris.FallbackView("fallback.html")) FallbackView(iris.FallbackViewLayout("layouts/fallback.html")) OR FallbackView(iris.FallbackViewFunc(ctx iris.Context, err iris.ErrViewNotExist) error { err.

(provider context.FallbackViewProvider)

Source from the content-addressed store, hash-verified

455 // [...custom logic e.g. ctx.View("fallback", err.Data)]
456 // })
457 FallbackView(provider context.FallbackViewProvider)
458 // Layout overrides the parent template layout with a more specific layout for this Party.
459 // It returns the current Party.
460 //

Callers 2

mainFunction · 0.65
FallbackViewMethod · 0.65

Implementers 1

APIBuildercore/router/api_builder.go

Calls

no outgoing calls

Tested by

no test coverage detected