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

Method RegisterView

iris.go:411–413  ·  view source on GitHub ↗

RegisterView registers a view engine for the application. Children can register their own too. If no Party view Engine is registered then this one will be used to render the templates instead.

(viewEngine view.Engine)

Source from the content-addressed store, hash-verified

409// Children can register their own too. If no Party view Engine is registered
410// then this one will be used to render the templates instead.
411func (app *Application) RegisterView(viewEngine view.Engine) {
412 app.view.Register(viewEngine)
413}
414
415// View executes and writes the result of a template file to the writer.
416//

Callers 1

BuildMethod · 0.95

Calls 1

RegisterMethod · 0.65

Tested by

no test coverage detected