Permalink
Browse files

Added EJS to package.json

  • Loading branch information...
1 parent 070fd45 commit 5a20b3395116d28e75199d4bac9e5f5a4db0a46b @hectorcorrea committed Jul 12, 2012
Showing with 3 additions and 21 deletions.
  1. +1 −1 README.md
  2. +0 −18 app.coffee
  3. +2 −2 package.json
View
@@ -26,7 +26,7 @@ Last but not least, you'll need to install **Express** and **EJS** by running th
Express is MVC-like JavaScript framework that takes care of the boiler plate code to handle HTTP requests and responses. [More info](http://expressjs.com)
-EJS is a template engine for Node.js that allows you to embed JavaScript when generating HTML web pages. [More info](https://github.com/visionmedia/ejs)
+EJS is a template engine for Node.js used to generate HTML pages with dynamic content. [More info](https://github.com/visionmedia/ejs)
How to run it
View
@@ -15,24 +15,6 @@ app.configure ->
ejs.close = '}}'
app.set 'view engine', 'ejs'
- # Use this to render plain old HTML files through the JADE engine
- # but without substitutions
- # app.set 'view options', {layout: false}
- # app.register '.html', require('jade')
-
- # app.register '.html', require 'ejs'
-
- # options = {
- # call: (scope, options) ->
- # return "xxx"
- # compile: (str, options) ->
- # html = str
- # return str
- # # return (locals) ->
- # # return html.replace /\{([^}]+)\}/g, (_, name) -> locals[name]
- # }
- # app.register '.md', options
-
#app.use express.logger() # logs HTTP requests
app.use express.bodyParser()
app.use express.methodOverride()
View
@@ -3,7 +3,7 @@
, "version": "0.0.1"
, "private": true
, "dependencies": {
- "express": ">= 2.5.8"
- , "jade": ">= 0.0.1"
+ "express": ">= 2.5.8",
+ "ejs": "~0.7.2"
}
}

0 comments on commit 5a20b33

Please sign in to comment.