Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed jade example since jade view engine is now a seperate module

  • Loading branch information...
commit e5da0effce9f2b1264d76c4ebe8fe1833118a36a 1 parent fdda7f0
@nrstott authored
View
18 README.md
@@ -145,17 +145,11 @@ to hold other templates to avoid duplication of content.
Visit the application in a web browser at [http://localhost:8080/](http://localhost:8080)
-### Haml
+### Jade
-Haml is an optional dependency of bogart. Please install it via `npm install haml` if you wish to use this templating
-engine.
-
-The Haml sample demonstrates a haml view without a layout.
-
- > cd examples/haml-view
- > node app.js
-
-Visit the application in a web browser at [http://localhost:8080/](http://localhost:8080)
+If you would like to use Jade instead of Mustache, please `npm install bogart-jade`. Then in
+your application add `require('bogart-jade')` and the Jade ViewEngine will be available via
+`bogart.viewEngine('jade')`. See [the github repository](https://github.com/nrstott/bogart-jade) for more information.
## Middleware
Bogart comes with a variety of JSGI middleware appliances. The `batteries` appliance includes a recommended JSGI application chain for
@@ -225,6 +219,10 @@ Standard flash middleware for bogart. Session id and data are stored in encrypte
* Avoid manipulating prototypes of Node.JS constructors. Manipulating prototypes makes for harder to understand code.
Also, Bogart is expected to be cross-platform in the future.
+## Supporting Modules
+
+* [Jade View Engine](https://github.com/nrstott/bogart-jade): `npm install bogart-jade`
+
## Contributors
* [Nathan Stott](https://github.com/nrstott)
View
31 examples/jade-layout/app.js
@@ -1,31 +0,0 @@
-/**
- * Bogart Jade View Engine Example.
- *
- * In order for this example to work, bogart-jade must be installed.
- * npm install bogart-jade
- */
-
-var bogart = require('../../lib/bogart')
- , path = require('path');
-
-require('bogart-jade');
-
-// Construct a Bogart ViewEngine using the Jade.
-var viewEngine = bogart.viewEngine('jade');
-
-var router = bogart.router();
-router.get('/', function(req) {
- return viewEngine.respond('index.jade', { locals: { description: 'This is content' } });
-});
-
-var app = bogart.app();
-
-// Framewokrs are better with batteries! Setup a batteries-included JSGI stack.
-app.use(bogart.middleware.error);
-
-// Add our router to the application stack. It is important that this be done after
-// adding bogart.batteries so that batteries is ahead of router in the middleware
-// chain.
-app.use(router);
-
-app.start(9091, '127.0.0.1');
View
1  examples/jade-layout/views/index.jade
@@ -1 +0,0 @@
-p #{description}
View
6 examples/jade-layout/views/layout.jade
@@ -1,6 +0,0 @@
-html
- head
- title Jade with Layout
- body
- h1 Hello
- !{body}
Please sign in to comment.
Something went wrong with that request. Please try again.