shallot0.2.1-1 • Public • Published
Shallot is a HTTP DSL based on coffeescript. It is very similar to zappa but tries to be more lightweight.
npm install shallot
Probably the shortest example possible
require @get -> 'Hello World!'
Shallot does not depend on express. It rather is up to you which kind of middlewares you want to use and what kind of rendering engine you require. It uses copperhead as router.
connect = require 'connect'require@use connectstatic 'public'@get ->'Hello World!'@get '/:name'->"Hello !"
More features may be added in the future. The main goal is to achieve the most powerful HTTP server functionality with minimal lines of code.