summaryrefslogtreecommitdiff
path: root/inc/parser/renderer.php
diff options
context:
space:
mode:
authorChris Smith <chris.eureka@jalakai.co.uk>2008-03-12 01:56:47 +0100
committerChris Smith <chris.eureka@jalakai.co.uk>2008-03-12 01:56:47 +0100
commitd968d3e5210d971ea439f2f29c47af438c1106c8 (patch)
treec88b6d1ab0a9c8f1fef625b8c40c47d1e94bfd75 /inc/parser/renderer.php
parent52fe2bfb49cad82b7f887b3dfa327f898720c4cd (diff)
downloadrpg-d968d3e5210d971ea439f2f29c47af438c1106c8.tar.gz
rpg-d968d3e5210d971ea439f2f29c47af438c1106c8.tar.bz2
Add support for plugin renderers to replace standard renderers
This patch is the fourth in a series aimed at making it easier for DW to allow plugins to modify the standard handling of line-breaks. It adds: - new config setting 'renderer_xhtml', default value 'xhtml' - new renderer method 'reset()' which is used by reusable renderers when used to render second and subsequent data. (*) An extra step has been added to the renderer selection process. - check $conf["renderer_$mode] for renderer name. If it doesn't exist use $mode as the renderer name. (*) It maybe that the 'document_start()' method can be used for this. However the current xhtml does not correctly reset itself for reuse. darcs-hash:20080312005647-f07c6-ff2cb960c05927f5c6f3e916a364fcad470c2ce3.gz
Diffstat (limited to 'inc/parser/renderer.php')
-rw-r--r--inc/parser/renderer.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/inc/parser/renderer.php b/inc/parser/renderer.php
index aa4da9dc1..92bbf51fb 100644
--- a/inc/parser/renderer.php
+++ b/inc/parser/renderer.php
@@ -29,6 +29,10 @@ class Doku_Renderer extends DokuWiki_Plugin {
var $entities = array();
var $interwiki = array();
+ // allows renderer to be used again, clean out any per-use values
+ function reset() {
+ }
+
function nocache() {
$this->info['cache'] = false;
}