added before render…"; } return array($content_or_func, $layout, $locals, $view_path); } /** * a filter for rewriting views without short_open_tags * * @param string $view_path * @return string $path to converted view file */ function render_filter_rewrite_short_tags($view_path) { if (option('rewrite_short_tags') == true && (boolean)@ini_get('short_open_tag') === false) { # cache path, maybe in tmp/cache/rsot_views/ $cache_path = file_path(option('rewrite_sot_cache_dir'), $view_path); if(!file_exists($cache_path) || (filemtime($cache_path) != filemtime($view_path))) { $view = file_get_contents($view_path); $transformed_view = preg_replace("/;*\s*\?>/", "; ?>", str_replace('Hellooo!

'); } dispatch('/error', 'index_error'); function index_error() { return halt('Error!'); } run(); # _INLINE templates___________________________________________________________ function html_default_layout($vars){ extract($vars);?> Before render filter test