{"action":"created","issue":{"url":"https://api.github.com/repos/contao/core-bundle/issues/485","repository_url":"https://api.github.com/repos/contao/core-bundle","labels_url":"https://api.github.com/repos/contao/core-bundle/issues/485/labels{/name}","comments_url":"https://api.github.com/repos/contao/core-bundle/issues/485/comments","events_url":"https://api.github.com/repos/contao/core-bundle/issues/485/events","html_url":"https://github.com/contao/core-bundle/pull/485","id":154051601,"number":485,"title":"[RFC] Twig!","user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contao/core-bundle/labels/feature","name":"feature","color":"3364b7"}],"state":"open","locked":false,"assignee":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2016-05-10T16:35:43Z","updated_at":"2016-05-12T18:14:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/contao/core-bundle/pulls/485","html_url":"https://github.com/contao/core-bundle/pull/485","diff_url":"https://github.com/contao/core-bundle/pull/485.diff","patch_url":"https://github.com/contao/core-bundle/pull/485.patch"},"body":"This PR adds Twig support for all extension developers. It allows to use Twig templates for everything in Contao, but it does not infer with the existing template system. Mixing YAML and PHP templates just won't work consistently and it won't be BC.\r\n\r\nThis PR is pretty simple:\r\n```php\r\n$container->get('contao.twig')->render('ce_text.twig');\r\n```\r\n\r\nThe `contao.twig` engine differs in two things from the regular one.\r\n 1. automatic output encoding is disabled\r\n 2. adds automatic template loading\r\n\r\nAlso, the templates can be edited in the regular Contao backend.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/contao/core-bundle/issues/comments/218840685","html_url":"https://github.com/contao/core-bundle/pull/485#issuecomment-218840685","issue_url":"https://api.github.com/repos/contao/core-bundle/issues/485","id":218840685,"user":{"login":"aschempp","id":1073273,"avatar_url":"https://avatars.githubusercontent.com/u/1073273?v=3","gravatar_id":"","url":"https://api.github.com/users/aschempp","html_url":"https://github.com/aschempp","followers_url":"https://api.github.com/users/aschempp/followers","following_url":"https://api.github.com/users/aschempp/following{/other_user}","gists_url":"https://api.github.com/users/aschempp/gists{/gist_id}","starred_url":"https://api.github.com/users/aschempp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aschempp/subscriptions","organizations_url":"https://api.github.com/users/aschempp/orgs","repos_url":"https://api.github.com/users/aschempp/repos","events_url":"https://api.github.com/users/aschempp/events{/privacy}","received_events_url":"https://api.github.com/users/aschempp/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T18:14:20Z","updated_at":"2016-05-12T18:14:20Z","body":"Changed environment to enable auto-reload.\r\n\r\nRegarding ACE, we can probably use https://github.com/heygrady/ace-mode-twig"}}