snowhite v1.1.2 SnowhiteWeb.Layouts.View View Source

Link to this section Summary

Functions

The resource name, as an atom, for this view

Renders the given template locally.

Gets the route helpers from the conn's router. As this view will be fired from another application and Snowhite doesn't include any endpoint nor default router. It fetches the router from the conn.

Callback invoked when no template is found. By default it raises but can be customized to render a particular template.

Link to this section Functions

The resource name, as an atom, for this view

Link to this function

render(template, assigns \\ %{})

View Source

Renders the given template locally.

Specs

route_helpers(Plug.Conn.t()) :: module()

Gets the route helpers from the conn's router. As this view will be fired from another application and Snowhite doesn't include any endpoint nor default router. It fetches the router from the conn.

Link to this function

template_not_found(template, assigns)

View Source

Specs

template_not_found(Phoenix.Template.name(), map()) :: no_return()

Callback invoked when no template is found. By default it raises but can be customized to render a particular template.