View Source ExshomeClock.Web.View (Exshome - Elixir Smart Home v0.1.7)
View module for Clock app.
Link to this section Summary
Functions
The resource name, as an atom, for this view
Calculates degree for clock hand rotation. value - current value for a clock hand. ratio - how much child clock hand progressed. max_value - maximum value for a clock hand.
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
Calculates degree for clock hand rotation. value - current value for a clock hand. ratio - how much child clock hand progressed. max_value - maximum value for a clock hand.
Renders the given template locally.
@spec 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.