Packages

Charlotte is a Web Framework. It takes a little from Rails and a little from Sinatra and does a few things it's own way. The goal is to be light weight, fun and get out of your way. defmodule Controller do use Charlotte.Handlers.HTTP def routes do [ {"/path", :path},...

Current section

Files

Jump to
charlotte lib charlotte supervisor.ex
Raw

lib/charlotte/supervisor.ex

defmodule Charlotte.Supervisor do
use Supervisor
def start_link do
:supervisor.start_link(__MODULE__, [])
end
def init([]) do
children = [
# Define workers and child supervisors to be supervised
# worker(Charlotte.Worker, [])
]
# See http://elixir-lang.org/docs/stable/Supervisor.Behaviour.html
# for other strategies and supported options
supervise(children, strategy: :one_for_one)
end
end