// app.js
var app = require('express').createServer();
app.get('/', function(req, res){
res.render('index.ejs');
});
app.listen(3000);
// views/layout.ejs
<html>
<body><%= body %></body>
</html>
// views/index.ejs
<p>hello world</p>
// Expected on GET "/"
<html>
<body><p>hello world</p></body>
</html>
// Actual on GET "/"
<html>
<body><p>hello world from index</p></body>
</html>
--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.
As to mustache --- All I'd need to do is create a render method and
register it to an engine called mjs? (then require('mjs') just
requires mustachejs)
Sounds about right?