I'm using express.js and twig.js 0.9.5 and I'd like to enable autoescape for all the variables in every template. I've found this page telling that it should be enabled by default by 0.9.0, but it doesn't seem to work. How do I configure twig to escape everything unless specified otherwise?
Express.js passes whatever is in twig options setting to twig, so to enable autoescape for all views, use:
var app = express();
app.set('twig options', {
autoescape: true
});