Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switch example back to swig

  • Loading branch information...
commit 786f945cd3fbdc648b834f85839e567c3ed65d6e 1 parent 336c580
@jugoncalves jugoncalves authored
Showing with 5 additions and 6 deletions.
  1. +2 −3 examples/express.js
  2. +3 −3 examples/views/users.html
View
5 examples/express.js
@@ -1,11 +1,10 @@
-
// npm install express
-var express = require('express')
+var express = require('../../express')
, cons = require('../')
, app = express();
-app.engine('html', cons.templayed);
+app.engine('html', cons.swig);
app.set('view engine', 'html');
app.set('views', __dirname + '/views');
View
6 examples/views/users.html
@@ -1,6 +1,6 @@
<h1>{{title}}</h1>
<ul>
- {{#users}}
- <li>{{name}}</li>
- {{/users}}
+ {% for user in users %}
+ <li>{{user.name}}</li>
+ {% endfor %}
</ul>
Please sign in to comment.
Something went wrong with that request. Please try again.