Skip to content

Instantly share code, notes, and snippets.

@bnoguchi
Created December 10, 2010 04:11
Show Gist options
  • Save bnoguchi/735759 to your computer and use it in GitHub Desktop.
Save bnoguchi/735759 to your computer and use it in GitHub Desktop.
Using ejs with express
var ejs = require('ejs')
, app = require('express').createServer();
app.set('view engine', 'ejs');
app.get('/', function (req, res) {
res.render('index'); // Where index.ejs is your ejs template
});
app.listen(3000);
@saikiran76
Copy link

helpful !

@chaotic-10
Copy link

thanks !

@pavanaditya15752
Copy link

Really thankful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment