{"action":"closed","issue":{"url":"https://api.github.com/repos/justjohn/twig.js/issues/302","repository_url":"https://api.github.com/repos/justjohn/twig.js","labels_url":"https://api.github.com/repos/justjohn/twig.js/issues/302/labels{/name}","comments_url":"https://api.github.com/repos/justjohn/twig.js/issues/302/comments","events_url":"https://api.github.com/repos/justjohn/twig.js/issues/302/events","html_url":"https://github.com/justjohn/twig.js/issues/302","id":129251569,"number":302,"title":"Twig.renderFile is broken","user":{"login":"sjuvonen","id":795367,"avatar_url":"https://avatars.githubusercontent.com/u/795367?v=3","gravatar_id":"","url":"https://api.github.com/users/sjuvonen","html_url":"https://github.com/sjuvonen","followers_url":"https://api.github.com/users/sjuvonen/followers","following_url":"https://api.github.com/users/sjuvonen/following{/other_user}","gists_url":"https://api.github.com/users/sjuvonen/gists{/gist_id}","starred_url":"https://api.github.com/users/sjuvonen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjuvonen/subscriptions","organizations_url":"https://api.github.com/users/sjuvonen/orgs","repos_url":"https://api.github.com/users/sjuvonen/repos","events_url":"https://api.github.com/users/sjuvonen/events{/privacy}","received_events_url":"https://api.github.com/users/sjuvonen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/justjohn/twig.js/labels/bug%20/%20bugfix","name":"bug / bugfix","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/justjohn/twig.js/milestones/4","html_url":"https://github.com/justjohn/twig.js/milestones/0.8.8","labels_url":"https://api.github.com/repos/justjohn/twig.js/milestones/4/labels","id":1551967,"number":4,"title":"0.8.8","description":"","creator":{"login":"plepe","id":249012,"avatar_url":"https://avatars.githubusercontent.com/u/249012?v=3","gravatar_id":"","url":"https://api.github.com/users/plepe","html_url":"https://github.com/plepe","followers_url":"https://api.github.com/users/plepe/followers","following_url":"https://api.github.com/users/plepe/following{/other_user}","gists_url":"https://api.github.com/users/plepe/gists{/gist_id}","starred_url":"https://api.github.com/users/plepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plepe/subscriptions","organizations_url":"https://api.github.com/users/plepe/orgs","repos_url":"https://api.github.com/users/plepe/repos","events_url":"https://api.github.com/users/plepe/events{/privacy}","received_events_url":"https://api.github.com/users/plepe/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":7,"state":"open","created_at":"2016-01-29T20:26:36Z","updated_at":"2016-02-13T13:44:57Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-01-27T19:57:55Z","updated_at":"2016-02-13T13:44:57Z","closed_at":"2016-02-13T13:44:57Z","body":"Inside Twig.exports.renderFile, variable **options** is defaulted to an empty object {} and right after this the code tries to access this object's sub properties (options.settings.views and 'twig options'), which will then cause errors like this:\r\n\r\n> TypeError: Cannot read property 'views' of undefined (node_modules/twig/twig.js:6160:39"}}