View Source ExCell.Controller (ExCell v0.1.0)

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

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, assigns)

View Source