fab

a modular async web framework for node.js

  • 所有者: jed/fab
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

(fab) - a streaming javascript framework

NOTE: (fab) is no longer under development.

(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:

module.exports = function( exports, imports ) {
  return imports( function( run, node$listen, route, html ) {
    with ( html ) return run
    
    ()
      ( node$listen, 0xFAB )
      
      ( HTML )
        ( BODY, { id: "show" } )
          ( "Hello, " )
          
          ( EM )
            ( route, /^\/(\w+)$/ )
              ( route.capture, 0 )
            ( /* else */ )
              ( "world!" )
          () //EM
          
          ( "!" )
        () //BODY
      () //HTML
    ();
  })
}

Getting started

To install (fab), use npm:

npm install fab

Then, from the (fab) directory in your node folder, launch the demo.js example:

fab demo.js

Look in the source of the demo to see how the app was built.

主要指標

概覽
名稱與所有者jed/fab
主編程語言JavaScript
編程語言JavaScript (語言數: 1)
平台
許可證
所有者活动
創建於2009-12-01 08:27:59
推送於2013-12-04 13:50:07
最后一次提交2013-12-04 08:50:07
發布數2
最新版本名稱v0.4.0 (發布於 )
第一版名稱v0.3.0 (發布於 )
用户参与
星數733
關注者數10
派生數23
提交數165
已啟用問題?
問題數0
打開的問題數0
拉請求數3
打開的拉請求數1
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?