View Source Routex (Phoenix Routes Extension Framework v0.1.0-alpha.6)
use Routex
When use'd this module generates a Routext backend module and a configuration struct using the
configure/2
callbacks of the extensions provided inopts
.See also: Routex Extensions.
Example
iex> defmodule MyApp.RtxBackend do
...> use Routex,
...> extensions: [
...> Routex.Extension.VerifiedRoutes,
...> Routex.Extension.AttrGetters,
...> ],
...> bar: [some_opts: "value"]
...> end
iex> IO.inspect(%MyApp.RtxBackend{})
%MyApp.RtxBackend{
bar: [some_opts: "value"],
extensions: [Routex.Extension.VerifiedRoutes, Routex.Extension.AttrGetters],
verified_sigil_routex: "~l",
verified_sigil_original: "~o"
}
Link to this section Summary
Link to this section Types
@type t() :: module()
A Routex backend module