snowhite v2.1.3 SnowhiteWeb.Profile.View View Source

Handles view logic of the rendered page for a given Profile.

Link to this section Summary

Functions

The resource name, as an atom, for this view

Converts a layout to a keyword list representation so it can be enumerable.

Gets pane's HTML classes based on it's position identifier. It sets the "pane" class along with it's horizontal and vertical identifiers. For instance, top_left pane would have class="pane top left".

Renders the given template locally.

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

Specs

Converts a layout to a keyword list representation so it can be enumerable.

Specs

Gets pane's HTML classes based on it's position identifier. It sets the "pane" class along with it's horizontal and vertical identifiers. For instance, top_left pane would have class="pane top left".

Link to this function

render(template, assigns \\ %{})

View Source

Renders the given template locally.

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.