{"action":"created","issue":{"url":"https://api.github.com/repos/jarednova/timber/issues/494","labels_url":"https://api.github.com/repos/jarednova/timber/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/jarednova/timber/issues/494/comments","events_url":"https://api.github.com/repos/jarednova/timber/issues/494/events","html_url":"https://github.com/jarednova/timber/issues/494","id":59964510,"number":494,"title":"Get same view rendered twice","user":{"login":"wcalderipe","id":3832154,"avatar_url":"https://avatars.githubusercontent.com/u/3832154?v=3","gravatar_id":"","url":"https://api.github.com/users/wcalderipe","html_url":"https://github.com/wcalderipe","followers_url":"https://api.github.com/users/wcalderipe/followers","following_url":"https://api.github.com/users/wcalderipe/following{/other_user}","gists_url":"https://api.github.com/users/wcalderipe/gists{/gist_id}","starred_url":"https://api.github.com/users/wcalderipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcalderipe/subscriptions","organizations_url":"https://api.github.com/users/wcalderipe/orgs","repos_url":"https://api.github.com/users/wcalderipe/repos","events_url":"https://api.github.com/users/wcalderipe/events{/privacy}","received_events_url":"https://api.github.com/users/wcalderipe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-05T15:09:53Z","updated_at":"2015-09-11T18:06:37Z","closed_at":null,"body":"I'm trying to create views to shortcodes so I'm using Timber::render to render some separate files when I need it but it's render my twice the same view and when I added a var_dump inside of Timber::render the dump is only outputted once.\r\n\r\nAnyone have some idea of what's happen?\r\n\r\n```language-php\r\nif( ! function_exists( 'crystal_sc_render' ) )\r\n{\r\n    function crystal_sc_render( $shortcode, $data )\r\n    {\r\n        return \\Timber::render( CRYSTAL_SC_TEMPLATES_DIR . $shortcode . '.twig.html', $data );\r\n    }\r\n}\r\n\r\nif( ! function_exists( 'crystal_bottom_parallax' ) )\r\n{\r\n    function crystal_bottom_parallax( $attr, $content = null )\r\n    {\r\n        extract(shortcode_atts(array(\r\n            'icon' \t        => '',\r\n            'title' \t\t=> '',\r\n            'label'\t \t\t=> '',\r\n            'href' \t\t    => '#',\r\n            'button' \t    => 'READ MORE'\r\n        ), $attr));\r\n        \r\n        return crystal_sc_render('crystal_bottom_parallax', $attr);\r\n    }\r\n    add_shortcode('crystal_bottom_parallax', 'crystal_bottom_parallax');\r\n}\r\n?>\r\n```\r\n\r\nThis shortcode is called in a page once and that is it."},"comment":{"url":"https://api.github.com/repos/jarednova/timber/issues/comments/139615377","html_url":"https://github.com/jarednova/timber/issues/494#issuecomment-139615377","issue_url":"https://api.github.com/repos/jarednova/timber/issues/494","id":139615377,"user":{"login":"shackep","id":3768614,"avatar_url":"https://avatars.githubusercontent.com/u/3768614?v=3","gravatar_id":"","url":"https://api.github.com/users/shackep","html_url":"https://github.com/shackep","followers_url":"https://api.github.com/users/shackep/followers","following_url":"https://api.github.com/users/shackep/following{/other_user}","gists_url":"https://api.github.com/users/shackep/gists{/gist_id}","starred_url":"https://api.github.com/users/shackep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shackep/subscriptions","organizations_url":"https://api.github.com/users/shackep/orgs","repos_url":"https://api.github.com/users/shackep/repos","events_url":"https://api.github.com/users/shackep/events{/privacy}","received_events_url":"https://api.github.com/users/shackep/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T18:06:37Z","updated_at":"2015-09-11T18:06:37Z","body":"I was able to change Timber::render to Timber::compile to get rid of the duplicate."}}