Packages

User accounts for Phoenix. Supports OAuth, JWT and forms out of the box

Current section

Files

Jump to
hr lib hr form_view.ex
Raw

lib/hr/form_view.ex

defmodule Hr.BaseFormView do
defmacro __using__(dir) do
quote do
use Phoenix.View, root: unquote(dir)
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]
use Phoenix.HTML
# import HrDemo.Router.Helpers
end
end
end
defmodule Hr.FormView do
use Hr.BaseFormView, "priv/templates/html"
end