/**
  * @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);
     }
 }
/**
 * @param $name
 * @return mixed
 */
function template_tool($name)
{
    $temp = HW_Twig_Template_Utilities::get_instance();
    return $temp->utilities($name);
}
 /**
  * create class instance
  * @return HWoo_Template
  */
 public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }