Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Server] Dépendance ejs

  • Loading branch information...
commit b02dc4934179234aae62834e4d240144e4d40ddd 1 parent 4a5fa0c
@FGRibreau authored
Showing with 7 additions and 4 deletions.
  1. +2 −1  app.coffee
  2. +3 −2 app.js
  3. +2 −1  package.json
View
3  app.coffee
@@ -3,6 +3,7 @@ async = require 'async'
fs = require 'fs'
forever = require 'forever'
_ = require 'underscore'
+ejs = require('ejs')
process.on "uncaughtException", (err) ->
console.log "Caught exception: " + err
@@ -97,7 +98,7 @@ app = express.createServer()
app.configure ->
app.use express.bodyParser()
app.use express.cookieParser()
- app.register('.ejs', require('ejs'))
+ app.register('.ejs', ejs)
app.set('views', __dirname + '/views')
app.set('view engine', 'html')
app.use express.methodOverride()
View
5 app.js
@@ -1,10 +1,11 @@
(function() {
- var UI, app, async, express, forever, foreverUI, fs, _;
+ var UI, app, async, ejs, express, forever, foreverUI, fs, _;
express = require('express');
async = require('async');
fs = require('fs');
forever = require('forever');
_ = require('underscore');
+ ejs = require('ejs');
process.on("uncaughtException", function(err) {
return console.log("Caught exception: " + err);
});
@@ -91,7 +92,7 @@
app.configure(function() {
app.use(express.bodyParser());
app.use(express.cookieParser());
- app.register('.ejs', require('ejs'));
+ app.register('.ejs', ejs);
app.set('views', __dirname + '/views');
app.set('view engine', 'html');
app.use(express.methodOverride());
View
3  package.json
@@ -9,7 +9,8 @@
"coffee-script":"1.1.2",
"express":"2.5.1",
"forever":"0.7.3",
- "underscore":"1.2.2"
+ "underscore":"1.2.2",
+ "ejs":"0.5.0"
},
"repository": "",
"author" : "Francois-Guillaume Ribreau <npm@fgribreau.com> (http://fgribreau.com)",
Please sign in to comment.
Something went wrong with that request. Please try again.