View Source Mobilizon.Web.ActivityPub.ActorView (Mobilizon v4.1.0-alpha.1)

Summary

Functions

The resource name, as an atom, for this view

Render an actor collection

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

Types

@type collection() ::
  :following
  | :followers
  | :members
  | :resources
  | :discussions
  | :posts
  | :events
  | :todos
  | :outbox

Functions

The resource name, as an atom, for this view

Link to this function

render(template, assigns \\ %{})

View Source
@spec render(String.t(), map()) :: map()
@spec render(String.t(), map()) :: map()

Render an actor collection

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.