From 2d5ccb39b065724c19bf34e24edfe52ebce90e74 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 3 Dec 2006 20:01:38 +0100 Subject: pluggable renderers Plugins can now provide their own renderer in lib/plugins//renderer.php The class inside this file needs to inherit from Doku_Renderer and has to be called Doku_Renderer_ To access the renderer the export action can be used eg: ?do darcs-hash:20061203190138-7ad00-f56b470b5dd043e1168ff2101c677eb8a9851627.gz --- inc/actions.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'inc/actions.php') diff --git a/inc/actions.php b/inc/actions.php index b37106ec5..4143416bb 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -150,7 +150,7 @@ function act_clean($act){ //remove all bad chars $act = strtolower($act); - $act = preg_replace('/[^a-z_]+/','',$act); + $act = preg_replace('/[^1-9a-z_]+/','',$act); if($act == 'export_html') $act = 'export_xhtml'; if($act == 'export_htmlbody') $act = 'export_xhtmlbody'; @@ -393,14 +393,12 @@ function act_export($act){ // try to run renderer #FIXME use cached instructions $mode = substr($act,7); - $text = p_render($mode,p_get_instructions(rawWiki($ID,$REV)),$info); + $text = p_cached_output(wikiFN($ID,$REV), $mode); if(!is_null($text)){ print $text; exit; } - - return 'show'; } -- cgit v1.2.3