ExCell v0.0.14 ExCell.Controller View Source
Cell methods that render a cell directly to a controller
Link to this section Summary
Functions
Renders a cell directly from a controller without having to use a view
Link to this section Functions
Link to this function
cell(cell) View Source
Renders a cell directly from a controller without having to use a view.
Examples
defmodule AppWeb.UserController do
use AppWeb, :controller
import Cell.Controller
def avatar(conn, _params) do
conn
|> cell(AvatarCell, user: conn.user)
end
end
Link to this function
cell(conn, cell) View Source
Link to this function