Skip to content
Permalink
Browse files

Specifying Jade version, and using \!{} to stop flash messages from b…

…eing escaped (luebken)
  • Loading branch information...
Alex Young
Alex Young committed Jan 28, 2011
1 parent 715da61 commit afc1eba719182fba4ed4aaaed87e60bbbfd9c0e2
Showing with 8 additions and 3 deletions.
  1. +4 −0 README.textile
  2. +3 −2 app.js
  3. +1 −1 views/layout.jade
@@ -46,6 +46,10 @@ npm install .
node app.js
</pre>

h3. Contributions

* "luebken":https://github.com/luebken

h3. License (GPL)

This program is free software: you can redistribute it and/or modify
5 app.js
@@ -1,9 +1,10 @@
var express = require('express@1.0.0'),
connect = require('connect@0.5.1'),
jade = require('jade@0.6.0'),
app = module.exports = express.createServer(),
mongoose = require('mongoose@0.0.4').Mongoose,
mongoStore = require('connect-mongodb@0.1.1'),
markdown = require('markdown').markdown,
connect = require('connect@0.5.1'),
sys = require('sys'),
db,
Document,
@@ -317,5 +318,5 @@ app.del('/sessions', loadUser, function(req, res) {
if (!module.parent) {
app.listen(3000);
console.log('Express server listening on port %d, environment: %s', app.address().port, app.settings.env)
console.log('Using connect %s, Express %s', connect.version, express.version);
console.log('Using connect %s, Express %s, Jade %s', connect.version, express.version, jade.version);
}
@@ -17,6 +17,6 @@ html
- if (typeof currentUser !== 'undefined')
li.right
a.destroy(href='/sessions') Log Out
#{flashMessages}
!{flashMessages}
!= body
script(type='text/javascript', src='/javascripts/application.js')

0 comments on commit afc1eba

Please sign in to comment.
You can’t perform that action at this time.