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
layout(Snowhite.Builder.Layout.t()) :: [ {Snowhite.Builder.Layout.position(), [Snowhite.Builder.Layout.module_definition()]} ]
Converts a layout to a keyword list representation so it can be enumerable.
Specs
pane_class(Snowhite.Builder.Layout.position()) :: String.t()
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.
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.