Permalink
Browse files

Renamed templates to views and rendering properly

  • Loading branch information...
twolfson committed Jun 9, 2012
1 parent 3464d82 commit 9bbd168aa055e13bc8da6adc0bcffae003adfdf5
View
3 app.js
@@ -5,6 +5,9 @@ app.use(jojo);
app.listen(8080);
+app.set('view engine', 'ejs');
+app.set('jojo article view', 'pages/article');
+
app.get('/abba', function (req, res) {
res.send([
'Hey',

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -8,7 +8,7 @@
</head>
<body>
<section>
- <%= yield %>
+ <%- body %>
</section>
<footer>
powered by <a href="https://github.com/twolfson/jojo">jojo</a>
@@ -5,7 +5,7 @@
</header>
<section class="content">
- <%= body %>
+ <%- content %>
</section>
<section class="comments">
File renamed without changes.
File renamed without changes.

0 comments on commit 9bbd168

Please sign in to comment.