Popularity
2.5
Declining
Activity
0.0
Stable
14
2
1

Monthly Downloads: 0
Programming language: Elixir
License: Apache License 2.0
Tags: Frameworks    

exelli alternatives and similar packages

Based on the "Frameworks" category.
Alternatively, view exelli alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of exelli or a related project?

Add another 'Frameworks' Package

README

Exelli

Elli elixir wrapper with some sugar sytnax goodies.

Hello world

defmodule MyHandler do
  use Exelli.Handler

  get [] do
    {:ok, "HELLO"}
  end

  get ["ping"] do
    {:ok, "PONG"}

  end

  get ["test"] do
    {:ok, "WORKS"}
  end

  post ["test"] do
    {:ok, "POST WORKS"}
  end

end

then start elli with

{:ok, pid} = Exelli.elli_start MyHandler.Simple

Router

defmodule MyRouter do

  use Exelli.Router

  enable MyMiddleware, [prefix: ["middleware"]]
  enable MyHandler

end

and you can start it with

{:ok, pid} = Exelli.elli_start MyRouter

In fact, it's just a sugar syntax. You can still use:

{:ok, pid} = Exelli.elli_start [{MyMiddleware, [prefix: ["middleware1"]]}, # normal prefix
                                {MySubSimple, "sub"}, # easy prefix
                                {MySimple, [prefix: []]}] # no prefix

Elli middlewares

You can obviously enable any other elli middleware. Add it to mix.exs, and enable like:


defmodule MyRouter do

  use Exelli.Router

  enable MyMiddleware, [prefix: ["middleware"]]
  enable MyHandler
  enable :elli_date

end