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

Method ViewEngine

context/context.go:3704–3706  ·  view source on GitHub ↗

+------------------------------------------------------------+ | Rich Body Content Writers/Renderers | +------------------------------------------------------------+ ViewEngine registers a view engine for the current chain of handlers. It overrides any previously registered en

(engine ViewEngine)

Source from the content-addressed store, hash-verified

3702//
3703// To register a view engine per-group of groups too see `Party.RegisterView` instead.
3704func (ctx *Context) ViewEngine(engine ViewEngine) {
3705 ctx.values.Set(ctx.app.ConfigurationReadOnly().GetViewEngineContextKey(), engine)
3706}
3707
3708// ViewLayout sets the "layout" option if and when .View
3709// is being called afterwards, in the same request.

Callers 2

setViewsFunction · 0.80
RegisterViewMethod · 0.80

Calls 3

SetMethod · 0.65
ConfigurationReadOnlyMethod · 0.65

Tested by

no test coverage detected