lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




2017-08-15 5:26 GMT+02:00 Aaron B. <aaron@zadzmo.org>:

I'm happy to make a first public release of my Lua web framework,
Perihelion.

While similar to Orbit, it is a new framework written from scratch.
Notably it uses a syntax hack for routing URL's to function calls. A
basic "hello world" application looks like this:

  local function index( web )

      return web:ok( "<html><body>Hello, World!</body></html>" )

  end

  app:get "/index" { index }


Perihelion runs under Lua 5.1 or newer, needs to no external
dependancies, and meets the WSAPI specification to interface to web
servers.

It is available on Luarocks, and well as it's website - which also has
the beginnings of documentation and more examples:
https://zadzmo.org/code/perihelion


It looks like https://github.com/nrk/mercury (ie. inspired by https://en.wikipedia.org/wiki/Sinatra_(software) )

François
 
--
Aaron B. <aaron@zadzmo.org>