messengyr v0.0.1 Messengyr.Web.RoomView
Renders Room structs in a given format.
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
Renders one or multiple Rooms in JSON format
Callback invoked when no template is found. By default it raises but can be customized to render a particular template
Functions
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 multipleRoomstructs:me=> aUserstruct
Callback invoked when no template is found. By default it raises but can be customized to render a particular template.