# messengyr v0.0.1 Messengyr.Web.RoomView

Renders Room structs in a given format.

# Summary

## Functions

__phoenix_recompile__?()

Returns true whenever the list of templates changes in the filesystem

__resource__()

The resource name, as an atom, for this view

__templates__()

Returns the template root alongside all templates

render(template, assigns \\ %{})

Renders one or multiple Rooms in JSON format

template_not_found(template, assigns)

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

# Functions

__phoenix_recompile__?()

Returns true whenever the list of templates changes in the filesystem.

__resource__()

The resource name, as an atom, for this view

__templates__()

Returns the template root alongside all templates.

render(template, assigns \\ %{})

Renders one or multiple Rooms in JSON format.

## Parameters

- template: either `"show.json"` (for one) or `"index.json"` (for multiple)

- assigns: a map that must contain the following keys-value pairs:

  - `:room` (or `:rooms`) => one or multiple `Room` structs
  - `:me` => a `User` struct

template_not_found(template, assigns)

    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.