Permalink
Browse files

Merge pull request #60 from trevorah/master

inlined require statement used for version number
  • Loading branch information...
2 parents ca36b59 + f39bdbb commit aa53db56cf205c41dfe1874a07d6e2bc850e48b6 @joemccann committed Mar 6, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 app.js
View
4 app.js
@@ -26,13 +26,11 @@ app.configure(function(){
app.use(require('stylus').middleware(__dirname + '/public'))
app.use(express.static(path.join(__dirname, 'public')))
- var package = require(path.resolve(__dirname, './package.json'))
-
// Setup local variables to be available in the views.
app.locals.title = "Online Markdown Editor - Dillinger, the Last Markdown Editor ever."
app.locals.description = "Dillinger is an Online cloud based HTML5 filled Markdown Editor. Sync with Dropbox and Github. 100% Open Source!"
app.locals.node_version = process.version.replace('v', '')
- app.locals.app_version = package.version
+ app.locals.app_version = require('./package.json').version
app.locals.env = process.env.NODE_ENV
app.locals.readme = fs.readFileSync( path.resolve(__dirname, './README.md'), 'utf-8')
})

0 comments on commit aa53db5

Please sign in to comment.