[dokuwiki] Re: writing a syntax plugin

> > And, continuing the topic of complex syntaxes, can a plugin store
> > information, collected during multiple handle(...) calls, when rendering
> > a single page? Like collect all the items in <blockA>, process them
> > (e.g. sort) and only then render.
> >   
> 
> Theoretically.  If you look in the handler (inc/parser/handler.php) 
> you'll find a nested syntax class.  iirc footnotes makes use of it.  A 
> plugin should be able to make use of the same system.  Implementation 
> may be a little more tricky as its not as straightforward for a plugin 
> to write its own instructions AND to avoid DW having writing plugin 
> instructions.
Just wanted to clarify one thing - the plugin object is instantiated
when parsing a wiki page and destroyed only when the page has been
rendered? would it be possible then to store collected information in
class properties? Or is this a wrong approach? The documentation is a
bit unclear about this.

Thanks,
Domas

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

Other related posts: