The following example shows how to use twig.js with express 2.
var twig = require("twig"), app = require('express').createServer(); app.configure(function () { app.set('view engine', 'twig'); app.set("view options", { layout: false }); // This section is optional and used to configure twig. app.set("twig options", { strict_variables: false }); }); app.register('twig', twig); app.get('/', function(req, res){ res.render('index', { message : "Hello World" }); }); app.listen(9999);
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4