frenzy/lib/frenzy_web/views/item_view.ex

8 lines
183 B
Elixir

defmodule FrenzyWeb.ItemView do
use FrenzyWeb, :view
def title(:show, %{item: %Frenzy.Item{title: title}, feed: %Frenzy.Feed{title: feed}}) do
"#{title} | #{feed}"
end
end