Packages

A full featured, configurable authentication and user management system for Phoenix.

Security advisory: This version has known vulnerabilities. View advisories

Current section

Files

Jump to
coherence priv templates coherence.install coherence_web.ex
Raw

priv/templates/coherence.install/coherence_web.ex

defmodule <%= base %>.Coherence.Web do
def view do
quote do
use Phoenix.View, root: "web/templates/coherence"
# Import convenience functions from controllers
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]
# Use all HTML functionality (forms, tags, etc)
use Phoenix.HTML
import <%= base %>.Router.Helpers
import <%= base %>.ErrorHelpers
import <%= base %>.Gettext
import <%= base %>.Coherence.ViewHelpers
end
end
@doc """
When used, dispatch to the appropriate controller/view/etc.
"""
defmacro __using__(which) when is_atom(which) do
apply(__MODULE__, which, [])
end
end