Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 8 commits
  • 8 files changed
  • 3 comments
  • 3 contributors
4  .travis.yml
... ...
@@ -0,0 +1,4 @@
  1
+language: node_js
  2
+node_js:
  3
+  - 0.6
  4
+  - 0.8
1  README.md
Source Rendered
... ...
@@ -1,3 +1,4 @@
  1
+[![build status](https://secure.travis-ci.org/nrstott/bogart.png)](http://travis-ci.org/nrstott/bogart)
1 2
 # Bogart
2 3
 
3 4
 A blazing fast rapid application development web framework using JSGI for [node](http://nodejs.org/).
13  examples/haml-view/app.js
... ...
@@ -1,13 +0,0 @@
1  
-var
2  
-  jsgi = require('jsgi'),
3  
-  bogart = require('../../lib/bogart')
4  
-
5  
-var app = bogart.app(function(show) {
6  
-  var viewEngine = bogart.viewEngine("haml");
7  
-  
8  
-  show('/', function(req) {
9  
-    return viewEngine.respond('index.haml', { layout: false });
10  
-  });
11  
-});
12  
-
13  
-jsgi.start(app)
13  examples/haml-view/package.json
... ...
@@ -1,13 +0,0 @@
1  
-{
2  
-    "name": "haml-example",
3  
-    "version": "1.0.0",
4  
-    "author": "Nathan Stott",
5  
-    "email": "nathan.stott@whiteboard-it.com",
6  
-    "main": "./app.js",
7  
-    "directories": { "lib": "./lib" },	
8  
-    "dependencies": {
9  
-      "promised-io": "v0.2.1",
10  
-    	"jsgi": "v0.2.2",
11  
-    	"mustache": "0.3.1-dev"
12  
-    }
13  
-}
2  examples/haml-view/views/index.haml
... ...
@@ -1,2 +0,0 @@
1  
-%h1 Hello World
2  
-%p This template is written using HAML
4  examples/task-list/app.js
@@ -48,10 +48,10 @@ router.post("/", function(req) {
48 48
   return bogart.redirect("/");
49 49
 });
50 50
 
51  
-router.del("/:name", function(req, name) {
  51
+router.del("/:name", function(req) {
52 52
   console.log('deleting '+req.params.name);
53 53
   console.log(tasks);
54  
-  delete tasks[name];
  54
+  delete tasks[req.params.name];
55 55
   
56 56
   return bogart.redirect("/");
57 57
 });
6  lib/bogart.js
@@ -11,7 +11,7 @@ var
11 11
   inherits     = require('util').inherits,
12 12
   EventEmitter = require('events').EventEmitter;
13 13
 
14  
-exports.version = [0,3,40];
  14
+exports.version = [0,3,41];
15 15
 
16 16
 exports.q = Q;
17 17
 
@@ -157,9 +157,9 @@ App.prototype.start = function(port, host) {
157 157
       if (Router.isRouter(descriptor.middleware)) {
158 158
         descriptor.middleware.nextApp = app;
159 159
         app = descriptor.middleware;
  160
+      } else {
  161
+        app = descriptor.middleware.apply(descriptor.middleware, descriptor.args.concat([ app ]));
160 162
       }
161  
-
162  
-      app = descriptor.middleware.apply(descriptor.middleware, descriptor.args.concat([ app ]));
163 163
     });
164 164
   }
165 165
 
2  package.json
... ...
@@ -1,7 +1,7 @@
1 1
 {
2 2
     "name": "bogart",
3 3
     "description": "Fast JSGI web framework taking inspiration from Sinatra",
4  
-    "version": "0.3.40",
  4
+    "version": "0.3.41",
5 5
     "keywords": ["bogart", "framework", "sinatra", "REST"],
6 6
     "author": "Nathan Stott <nrstott@gmail.com>",
7 7
     "email": "nathan.stott@whiteboard-it.com",

Showing you all comments on commits in this comparison.

Benny Lichtner

Looks like this may have broken the readme image?

Nathan
Owner

You're right, thanks. Checking it out.

Nathan
Owner

It can't even find the nrstott/bogart information. Maybe something is wrong on their site? The image actually links to their site. Will investigate further.

Something went wrong with that request. Please try again.