Пример #1
0
/**
 * @param $name
 * @return mixed
 */
function template_tool($name)
{
    $temp = HW_Twig_Template_Utilities::get_instance();
    return $temp->utilities($name);
}
Пример #2
0
 /**
  * @param $name
  * @return mixed
  */
 public function load_partial_template($name)
 {
     $name = trim($name);
     if ($name[0] == ':' && self::$current_working_file) {
         //return load_partial(self::$current_working_file.$name);
         $utility = HW_Twig_Template_Utilities::get_instance();
         return $utility->render_template(self::$current_working_file . $name);
     }
 }