Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a javascript DSL for building async web apps

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
README.md

(fab) - a modular async web framework

(fab) is a lightweight toolkit that makes it easy to build asynchronous web apps. It takes advantage of the flexibility and functional nature of javascript to create a concise "DSL", without pre-compilation or magic scope hackery.

Here's an example of a "hello world" app:

fab = require( "../" );

require( "http" ).createServer( fab

  ( /^\/hello/ )

    ( fab.tmpl, "Hello, <%= this[ 0 ] %>!" )

    ( /^\/(\w+)$/ )
      ( fab.capture )
      ( [ "world" ] )

  ( 404 )

).listen( 0xFAB );

See more examples, learn how to make your own apps, or see the apps that (fab) provides for you.

Something went wrong with that request. Please try again.