If the sidebar portion of my template is going to generate wiki code, I wonder if there is any way that I can pass an array of wiki lines to some DokuWiki function that will convert it to html, or if my only resort is to write the output to a temporary file, and then call p_wiki_xhtml on the result?Look for p_render and how its called.
I use $wiki_markup = "^ my | table|\n^with 2 | rows|"; $renderer->info['cache'] = true; $xhtml = p_render('xhtml', p_get_instructions($wiki_markup), $renderer->info);in a plugin. A plugin gets a reference to the renderer when its `render()' function is called:
function render($mode, &$renderer, $data)I don't know how you exactly you get the reference in a template, maybe its available as a global variable.
HTH. Simon -- Simon Heimlicher Communication Systems Research Group, ETH Zurich Web: http://www.csg.ethz.ch/people/simonh Office: ETZ G 60.1, Gloriastrasse 35, 8092 Zurich Phone: +41 44 632 7022 Fax: +41 44 632 1035 -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist