{"action":"created","issue":{"url":"https://api.github.com/repos/phug-php/phug/issues/14","repository_url":"https://api.github.com/repos/phug-php/phug","labels_url":"https://api.github.com/repos/phug-php/phug/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/phug-php/phug/issues/14/comments","events_url":"https://api.github.com/repos/phug-php/phug/issues/14/events","html_url":"https://github.com/phug-php/phug/issues/14","id":280065627,"number":14,"title":"Output buffering in sandbox make it hard to dump variables for debugging","user":{"login":"char101","id":71255,"avatar_url":"https://avatars3.githubusercontent.com/u/71255?v=4","gravatar_id":"","url":"https://api.github.com/users/char101","html_url":"https://github.com/char101","followers_url":"https://api.github.com/users/char101/followers","following_url":"https://api.github.com/users/char101/following{/other_user}","gists_url":"https://api.github.com/users/char101/gists{/gist_id}","starred_url":"https://api.github.com/users/char101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/char101/subscriptions","organizations_url":"https://api.github.com/users/char101/orgs","repos_url":"https://api.github.com/users/char101/repos","events_url":"https://api.github.com/users/char101/events{/privacy}","received_events_url":"https://api.github.com/users/char101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-07T09:51:40Z","updated_at":"2017-12-07T10:13:30Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nAs the title says, is there any way to output `var_dump`s within code that runs inside phug's sandbox?\r\n\r\nI'm debugging on why phug cannot find the parent template when using template inheritance, and I `dump`ed some variable values. Specifically I'm using symfony's `var-dumper`. The problem is that the script and styles that are added by `var-dumper` does not appear in the output html. On further investigation I found out that the first dump was eaten by phug's sandbox.\r\n\r\nAlso what is the purpose of the sandbox? I don't find any occurence where the sandbox buffer is used in the code."},"comment":{"url":"https://api.github.com/repos/phug-php/phug/issues/comments/349923123","html_url":"https://github.com/phug-php/phug/issues/14#issuecomment-349923123","issue_url":"https://api.github.com/repos/phug-php/phug/issues/14","id":349923123,"user":{"login":"kylekatarnls","id":5966783,"avatar_url":"https://avatars1.githubusercontent.com/u/5966783?v=4","gravatar_id":"","url":"https://api.github.com/users/kylekatarnls","html_url":"https://github.com/kylekatarnls","followers_url":"https://api.github.com/users/kylekatarnls/followers","following_url":"https://api.github.com/users/kylekatarnls/following{/other_user}","gists_url":"https://api.github.com/users/kylekatarnls/gists{/gist_id}","starred_url":"https://api.github.com/users/kylekatarnls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylekatarnls/subscriptions","organizations_url":"https://api.github.com/users/kylekatarnls/orgs","repos_url":"https://api.github.com/users/kylekatarnls/repos","events_url":"https://api.github.com/users/kylekatarnls/events{/privacy}","received_events_url":"https://api.github.com/users/kylekatarnls/received_events","type":"User","site_admin":false},"created_at":"2017-12-07T10:13:30Z","updated_at":"2017-12-07T10:13:30Z","author_association":"OWNER","body":"Hi,\r\n\r\nFirst, variables values cannot have any impact on inheritance as extend and include in pug are all static handled at compile-time, not render-time.\r\n\r\nThe SandBox render the template in a safe  area to be sure if an exception occurs, we won't display partial output, and then in debug mode, we can display error with line and offset in the pug source file.\r\n\r\nDo you use [pug-symfony](https://github.com/pug-php/pug-symfony)?"}}
{"actor":{"display_login":"kylekatarnls"}}