ExCell v0.0.8 ExCell.View View Source
Cell helpers used to render the cells in both Views and Cells
Link to this section Summary
Functions
Renders a cell in the view
Renders a cell in the view with children without a block
Renders the cell directly as a string, used for testing purposes
Returns the relative path of a module to the namespace. This method is used to determine the template path of the cell
Link to this section Functions
Renders a cell in the view.
### Examples
iex(0)> safe_to_string(AppWeb.AvatarView.cell(AvatarCell))
"<div class="AvatarCell" ...>"
Renders a cell in the view with children without a block.
Examples
iex(0)> safe_to_string(AppWeb.AvatarView.cell(AvatarCell, "Hello"))
"<div class="AvatarCell" ...>Hello</div>"
Renders the cell directly as a string, used for testing purposes.
Examples
iex(0)> AppWeb.AvatarView.cell_to_string(AvatarCell)
"<div class="AvatarCell" ...>"