/** * Compiles the specified file containing Blade pseudo-code into valid PHP. * * @param string $path * @return string */ public static function compile(View $view) { return static::compile_string(file_get_contents($view->originalPath())); }
<?php include "../vendor/autoload.php"; $view = \Framework\Blade\View::make("sample"); echo $view->with('footer', 'WITH specified footer')->with(array('title' => 'Sample Title'))->get();