[dokuwiki] Re: Request: structure of p_get_renderer() should be modified to increase flexibility

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 10 Jul 2011 12:52:05 +0200

> My suggestion is the following: just place an additional class_exists() call
> before the current file_exists() call [of course moving the definition of
> $rclass before that call] which looks for the file inside inc/parser/. That
> way you could define your own renderer class anywhere without losing the
> possibility to use p_render() [because if p_get_renderer is not able to find
> your class, you cannot use p_render()].

I think Adrian intended to move this to our class loader anyway. But
for now I just applied your patch.

Andi

-- 
splitbrain.org
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: