public function file($file, $params = array(), $sandbox = false)
{
if ($this->cachePath) {
$cachedfile = $this->get_cached_file($file, $sandbox);
if ($cachedfile) {
ob_start();
lexy_include_with_params($cachedfile, $params, $file);
$output = ob_get_clean();
return $output;
}
}
return $this->execute(file_get_contents($file), $params, $sandbox, $file);
}