···21212222 def router do
2323 quote do
2424+ # explicit path management
2425 use Phoenix.Router, helpers: true
25262627 # Import common connection and controller functions to use in pipelines
···38393940 def controller do
4041 quote do
4141- use Phoenix.Controller,
4242- formats: [:html, :json],
4343- layouts: [html: SowerWeb.Layouts]
4242+ use Phoenix.Controller, formats: [:html, :json]
44434544 import Plug.Conn
4645 import SowerWeb.Gettext
···51505251 def live_view do
5352 quote do
5454- use Phoenix.LiveView,
5555- layout: {SowerWeb.Layouts, :app}
5353+ use Phoenix.LiveView
56545755 unquote(html_helpers())
5856 end
···8785 import SowerWeb.CoreComponents
8886 import SowerWeb.Gettext
89879090- # Shortcut for generating JS commands
9188 alias Phoenix.LiveView.JS
8989+ alias SowerWeb.Layouts
92909391 # Routes generation with the ~p sigil
9492 unquote(verified_routes())
···105103 end
106104107105 @doc """
108108- When used, dispatch to the appropriate controller/view/etc.
106106+ When used, dispatch to the appropriate controller/live_view/etc.
109107 """
110108 defmacro __using__(which) when is_atom(which) do
111109 apply(__MODULE__, which, [])
···11-<div>
22- <p>
33- Then he told them many things in parables, saying: “A farmer went out to sow his seed. As he was scattering the seed, some fell along the path, and the birds came and ate it up. Some fell on rocky places, where it did not have much soil. It sprang up quickly, because the soil was shallow. But when the sun came up, the plants were scorched, and they withered because they had no root. Other seed fell among thorns, which grew up and choked the plants. Still other seed fell on good soil, where it produced a crop—a hundred, sixty or thirty times what was sown. Whoever has ears, let them hear.”
44- </p>
55-</div>
11+<Layouts.app flash={@flash}>
22+ <div>
33+ <p>
44+ Then he told them many things in parables, saying: “A farmer went out to sow his seed. As he was scattering the seed, some fell along the path, and the birds came and ate it up. Some fell on rocky places, where it did not have much soil. It sprang up quickly, because the soil was shallow. But when the sun came up, the plants were scorched, and they withered because they had no root. Other seed fell among thorns, which grew up and choked the plants. Still other seed fell on good soil, where it produced a crop—a hundred, sixty or thirty times what was sown. Whoever has ears, let them hear.”
55+ </p>
66+ </div>
77+</Layouts.app>