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

Method FallbackView

context/context.go:3789–3789  ·  view source on GitHub ↗
(ctx *Context, err ErrViewNotExist)

Source from the content-addressed store, hash-verified

3787// See FallbackView, FallbackViewLayout and FallbackViewFunc.
3788type FallbackViewProvider interface {
3789 FallbackView(ctx *Context, err ErrViewNotExist) error
3790} /* Notes(@kataras): If ever requested, this fallback logic (of ctx, error) can go to all necessary methods.
3791 I've designed with a bit more complexity here instead of a simple filename fallback in order to give
3792 the freedom to the developer to do whatever he/she wants with that template/layout not exists error,

Callers 1

fireFallbackViewOnceMethod · 0.65

Implementers 2

APIBuildercore/router/api_builder.go
Contextcontext/context.go

Calls

no outgoing calls

Tested by

no test coverage detected