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)
| 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. |
| 411 | func (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 | // |