I just discovered the IfPlugin so I've added docs on jspwiki.org:

   http://www.jspwiki.org/wiki/IfPlugin

I wanted to use its functionality with other plugins, both being
able to use its internal logic, as well as wanted to be able to
call other plugins from within its body. I've made the necessary
modifications which are attached as a patch.

You can now call a static method with a WikiContext and a parameter
Map (which is now what the IfPlugin itself calls):

   boolean b = IfPlugin.ifInclude( WikiContext context, Map params );

as well as include plugins within the IfPlugin's body by escaping the
left and right square brackets using 'LSBR' and 'RSBR', resp., e.g.,

  [{If page='TestPage' exists='true'

  LSBR{TableOfContents}RSBR }]

Thanks Janne, pretty cool. Should be very useful.

Murray

...........................................................................
Murray Altheim <murray07 at altheim.com>                           ===  = =
http://www.altheim.com/murray/                                     = =  ===
SGML Grease Monkey, Banjo Player, Wantanabe Zen Monk               = =  = =

      Boundless wind and moon - the eye within eyes,
      Inexhaustible heaven and earth - the light beyond light,
      The willow dark, the flower bright - ten thousand houses,
      Knock at any door - there's one who will respond.
                                      -- The Blue Cliff Record
_______________________________________________
This is the Jspwiki-users mailing list, in which we discuss the 
stable release (even-numbered, 2.4.x, 2.6.x), and user-issues. 
For development discussion, please join jspwiki-dev.
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
http://www.jspwiki.org/JSPWikiMailingList

Reply via email to