Packages

NavEx is the navigation history package for Elixir/Phoenix Framework. It uses adapter pattern and lets you choose between a few adapters to keep your users navigation history.

Current section

Files

Jump to
nav_ex lib application.ex
Raw

lib/application.ex

defmodule NavEx.Application do
@moduledoc false
use Application
@adapter Application.compile_env(:nav_ex, :adapter) || NavEx.Adapters.ETS
@doc false
def start(_type, _args) do
children = @adapter.children()
opts = [strategy: :one_for_one, name: NavEx.Supervisor]
Supervisor.start_link(children, opts)
end
end