protected function getTemplateFile() { $file = VIEWDIR . $this->template . '.php'; if (is_file($file)) { return $file; } $file = Dir::concat(PIMPLEBASE, 'view') . $this->template . '.php'; if (is_file($file)) { return $file; } return null; }
public static function getCacheFile($filename) { $dirname = dirname(substr($filename, strlen(BASEDIR))); return Dir::concat(CACHEDIR, $dirname) . basename($filename); }
public static function compileAll() { $jsDir = Dir::concat(Pimple::instance()->getSiteDir(), 'www/js/'); }