Created
December 26, 2012 20:44
-
-
Save barnabywalters/4382985 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$render = function ($_path, $data) { | |
extract($data); | |
unset($data); | |
require $_path; | |
}; | |
ob_start(); | |
$render($_path, $data); | |
$buffer = ob_get_contents(); | |
ob_end_clean(); | |
// EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment