Minimalist web framework for nodejs
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 7 commits behind kadirpekel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
test
.gitignore
README.md
index.js
license
lint
lint.cfg
package.json

README.md

Meryl

Meryl is minimalist web framework for nodejs platform. It is really simple to use, fun to play and easy to modify.

Here is simple preview.

var meryl = require('meryl');

meryl
  .plug('GET *', function (req, resp, next) {
      resp.headers.server = 'Meryl on NodeJS';
      next();
    }
  )
  .plug('GET /private/*', function (req, resp, next) {
      resp.status = 401;
      throw 'Forbidden';
    }
  )
  .handle('GET /', function (req, resp) {
      resp.send('<h3>Hello, World!</h3>');
    }
  )
  .handle('GET /greet/{name}', function (req, resp) {
      resp.send('<h3>Hello, ' + req.params.name + '</h3>');
    }
  )
  .run();

Meryl has much more...

Please visit Meryl homepage for all related stuff.

http://coffeemate.github.com/meryl

For updates please follow: http://twitter.com/meryljs

Contributors: