I was wrong about Parser::parse - that *does* seem to parse the tags
(wasn't calling getText) when passed with params 4 and 5 as false.
However recursiveTagParse still doesn't work. But anyway I'm happy...
On Wed, Apr 2, 2008 at 11:21 PM, Alex Powell <alexp(a)exscien.com> wrote:
Hi,
Now I have implemented it as a parser function it looks much cleaner,
but now I have a new problem - I cannot seem to call
parser->recursiveTagParse or (Parser:parse for that matter) to process
the template parameter - which is normal wiki text. The parameters
just appear as flat text. The parser object is passed to the function,
but doesn't seem to work the same. Am I missing something or is this a
limitation of parser functions that recursiveTagParse can only be used
by XML style extensions? If so I'll probably have to go back to the
old method until the bug Simetrical pointed out has been fixed -
though I guess I could try #tag (shudder)...
Alex
On Tue, Apr 1, 2008 at 9:42 PM, Alex Powell <alexp(a)exscien.com> wrote:
Thanks Jim,
I'll try that. Squiggly brackets ahoy!
Alex
On Tue, Apr 1, 2008 at 5:45 PM, Jim R. Wilson <wilson.jim.r(a)gmail.com> wrote:
> Alex,
> Instead of using a <tag>, you
should make a {{#parserfunction:}}. The
> process is similar, but a parser function participates in a much more
> integrated way with the rest of the parsing process (allowing template
> parameters for example).
> -- Jim R. Wilson (jimbojw)
> Alex Powell
> Exscien Training Ltd
> Tel: +44 (0) 1865 920024
> Direct: +44 (0) 1865 920032
> Mob: +44 (0) 7717 765210
> skype: alexp700
> mailto:alexp@exscien.com
>
http://www.exscien.com
> Registered in England and Wales
05927635, Unit 10 Wheatley Business
> Centre, Old London Road, Wheatley, OX33 1XW, England
--
Alex Powell
Exscien Training Ltd
Tel: +44 (0) 1865 920024
Direct: +44 (0) 1865 920032
Mob: +44 (0) 7717 765210
skype: alexp700
mailto:alexp@exscien.com
http://www.exscien.com
Registered in England and Wales 05927635, Unit 10 Wheatley Business
Centre, Old London Road, Wheatley, OX33 1XW, England
--
Alex Powell
Exscien Training Ltd
Tel: +44 (0) 1865 920024
Direct: +44 (0) 1865 920032
Mob: +44 (0) 7717 765210
skype: alexp700
mailto:alexp@exscien.com
Registered in England and Wales 05927635, Unit 10 Wheatley Business
Centre, Old London Road, Wheatley, OX33 1XW, England