How do I pass values to an html template using consolidate.swig in node.js?

This is my code:

var cons = require('consolidate');
var list = new Array();
cons.swig("views/Categories.html", {categorylist: list}, 
        function(err, html) {
            response.writeHead(200, {"Content-Type" : "text/html"});
            response.end(html);
        });

I needed to pass the array to the Categories.html page. Then the array must be manipulable in the Categories.html page. How do I do that? Any help would be much appreciated :)