예제 #1
0
파일: Blade.php 프로젝트: cinnamonlab/blade
 /**
  * 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()));
 }
예제 #2
0
파일: test.php 프로젝트: cinnamonlab/blade
<?php

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