Views
interface contains a Load
and Render
method, Load
is executed by Fiber on app initialization to load/parse the templates.Render
method is linked to the ctx.Render() function that accepts a template name and binding data. It will use global layout if layout is not being defined in Render
function. If the Fiber config option PassLocalsToViews
is enabled, then all locals set using ctx.Locals(key, value)
will be passed to the template.