Ejemplo n.º 1
0
 /**
  * Get the evaluated view contents for the given view.
  *
  * @param  string $view
  * @param  array  $data
  *
  * @return \Frozzare\Digster\View
  */
 function view($view = null, $data = [])
 {
     $factory = \Frozzare\Digster\Digster::factory();
     if (func_num_args() === 0) {
         return $factory;
     }
     return $factory->make($view, $data);
 }
Ejemplo n.º 2
0
/**
 * Get the view class.
 *
 * @param  string $view
 * @param  array  $data
 *
 * @return \Frozzare\Digster\View
 */
function digster_view($view, array $data = [])
{
    return Digster::view($view, $data);
}
Ejemplo n.º 3
0
/**
 * Get the Digster instance.
 *
 * @return \Frozzare\Digster\Digster
 */
function digster()
{
    return \Frozzare\Digster\Digster::instance();
}