Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Minimalist web framework for nodejs

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 license
Octocat-spinner-32 lint
Octocat-spinner-32 lint.cfg
Octocat-spinner-32 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:

Something went wrong with that request. Please try again.