{"action":"opened","issue":{"url":"https://api.github.com/repos/twigjs/twig.js/issues/432","repository_url":"https://api.github.com/repos/twigjs/twig.js","labels_url":"https://api.github.com/repos/twigjs/twig.js/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/twigjs/twig.js/issues/432/comments","events_url":"https://api.github.com/repos/twigjs/twig.js/issues/432/events","html_url":"https://github.com/twigjs/twig.js/issues/432","id":191892202,"number":432,"title":"Inline Twig Includes","user":{"login":"mattidupre","id":1551499,"avatar_url":"https://avatars.githubusercontent.com/u/1551499?v=3","gravatar_id":"","url":"https://api.github.com/users/mattidupre","html_url":"https://github.com/mattidupre","followers_url":"https://api.github.com/users/mattidupre/followers","following_url":"https://api.github.com/users/mattidupre/following{/other_user}","gists_url":"https://api.github.com/users/mattidupre/gists{/gist_id}","starred_url":"https://api.github.com/users/mattidupre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattidupre/subscriptions","organizations_url":"https://api.github.com/users/mattidupre/orgs","repos_url":"https://api.github.com/users/mattidupre/repos","events_url":"https://api.github.com/users/mattidupre/events{/privacy}","received_events_url":"https://api.github.com/users/mattidupre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-27T23:01:33Z","updated_at":"2016-11-27T23:01:33Z","closed_at":null,"body":"Implementing an include in an inline template always throws `TwigException: Unable to find template file undefined`. \r\n\r\nI'm using the API as follows:\r\n```\r\nTwig.twig({\r\n    allowInlineIncludes: true,\r\n    async: false,\r\n    data: `{% include 'somefile.twig' %}`,\r\n  }).render({});\r\n```\r\n\r\nI have tried with just about every combination of ```file``` and ```base``` with no luck.\r\n\r\nI peaked around at the source and the problem looks to be in [twig.core.js](https://github.com/twigjs/twig.js/blob/13e64cafdf0b7d0f45a356e95ff4fdb91956fe95/src/twig.core.js#L1228)."}}
{"actor":{"display_login":"mattidupre"}}