示例#1
0
文件: jade.php 项目: wushian/MDD
 protected function process_file($file_override = false)
 {
     $file = $file_override ?: $this->file_name;
     static::cache_init($file);
     $file = static::parser()->cache($file);
     return parent::process_file($file);
 }
示例#2
0
 public function action_test()
 {
     $this->template->content = View::forge('contents/add_status.twig');
 }
示例#3
0
 protected static function capture($view_filename, array $view_data)
 {
     static::cache_init($view_filename);
     $file = static::parser()->cache($view_filename);
     return parent::capture($file, $view_data);
 }
示例#4
0
 public static function _init()
 {
     parent::_init();
     Twig_Autoloader::register();
 }