View Source PlausibleWeb.Components.Site.Feature (Plausible v0.0.1)

Phoenix Component for rendering a user-facing feature toggle capable of flipping booleans in Plausible.Site via the toggle_feature controller action.

Summary

Functions

The resource name, as an atom, for this view

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.

Attributes

Slots

  • inner_block

Functions

The resource name, as an atom, for this view

Link to this function

button_inactive(assigns)

View Source
Link to this function

render(template, assigns \\ %{})

View Source

Renders the given template locally.

Link to this function

target(site, setting, conn, set_to)

View Source
Link to this function

template_not_found(template, assigns)

View Source
@spec template_not_found(binary(), map()) :: no_return()

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

Attributes

Slots

  • inner_block