Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.MastodonAPI.StatusView View Source
Link to this section Summary
Functions
Returns true whenever the list of templates changes in the filesystem.
The resource name, as an atom, for this view
Returns the template root alongside all templates.
Builds list emojis.
Builds a dictionary tags.
Renders the given template locally.
Same as render/3
but wrapped in a rescue block
Same as render_many/4
but wrapped in rescue block.
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
Returns true whenever the list of templates changes in the filesystem.
The resource name, as an atom, for this view
Returns the template root alongside all templates.
Builds list emojis.
Arguments: nil
or list tuple of name and url.
Returns list emojis.
Examples
iex> Pleroma.Web.MastodonAPI.StatusView.build_emojis([{"2hu", "corndog.png"}]) [%{shortcode: "2hu", static_url: "corndog.png", url: "corndog.png", visible_in_picker: false}]
Builds a dictionary tags.
Examples
iex> Pleroma.Web.MastodonAPI.StatusView.build_tags(["fediverse", "nextcloud"]) [{"name": "fediverse", "url": "/tag/fediverse"}, {"name": "nextcloud", "url": "/tag/nextcloud"}]
Renders the given template locally.
Same as render/3
but wrapped in a rescue block
Same as render_many/4
but wrapped in rescue block.
template_not_found(template, assigns)
View Sourcetemplate_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.