Exemplo n.º 1
0
 /**
  * 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()));
 }
Exemplo n.º 2
0
<?php

include "../vendor/autoload.php";
$view = \Framework\Blade\View::make("sample");
echo $view->with('footer', 'WITH specified footer')->with(array('title' => 'Sample Title'))->get();