[dokuwiki] Re: writing a syntax plugin
- From: domas <domas.m@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Tue, 19 Jun 2007 10:37:54 +0300
> > 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
- Follow-Ups:
- [dokuwiki] Re: writing a syntax plugin
- From: Chris Smith
- References:
- [dokuwiki] writing a syntax plugin
- From: domas
- [dokuwiki] Re: writing a syntax plugin
- From: Chris Smith
Other related posts:
- » [dokuwiki] writing a syntax plugin
- » [dokuwiki] Re: writing a syntax plugin
- » [dokuwiki] Re: writing a syntax plugin
- » [dokuwiki] Re: writing a syntax plugin
- [dokuwiki] Re: writing a syntax plugin
- From: Chris Smith
- [dokuwiki] writing a syntax plugin
- From: domas
- [dokuwiki] Re: writing a syntax plugin
- From: Chris Smith