[pmwiki-users] want opinions on a new cookbook recipe format

Patrick R. Michaud pmichaud at pobox.com
Mon Mar 6 17:06:11 CST 2006

On Tue, Mar 07, 2006 at 12:04:20AM +0100, Dominique Faure wrote:
> On 3/6/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > PmWiki's cookbook is specially configured to recognize lines
> > beginning with a (capitalized) word immediately followed by a colon
> > as being special.  Eventually it will automatically save the
> > values as attributes in the page file, so that PmWiki can do searches
> > and sorts on them without having to parse/process the entire markup
> > text.
> >
> > In fact, eventually there will be a recipe for this, as this capability
> > is going to be used for both the Cookbook and PITS.
> >
> Could you please give us some (minimal) code for Cookbook.php to have
> the proper formatting in our local Cookbook pages: This could (in my
> case) greatly improve the speed of recipe rewriting.

Sure, here's the markup rule I'm using in local/Cookbook.php for this:

    Markup('^Property:', 'block',
      '<:block,0><div class=\'property-$1\'>$0</div>');


More information about the pmwiki-users mailing list