[pmwiki-users] ZAP nearly ready...

The Editor editor at fast.st
Mon Oct 23 15:57:59 CDT 2006


On 10/23/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> I strongly recommend _against_ using "{var}" as the markup for
> this, because it will conflict with many other uses of braces
> as markup, including {-deleted-}, {+inserted+}, {=stickynote=},
> {abbr|abbreviation}, and possibly others that other recipes may
> wish to use.
>
> If you're intending to simply grab the values of posted fields,
> I'd recommend {$?var} or {$!var} or something like that.  If nothing
> else, at least be consistent with the HttpVariables recipe
> (which uses {$|var} to get $_POST values).  But trying to grab
> {var} might just run into problems.

Actually, this is the same markup Nils uses in AddDeleteLine--and for
a similar purpose.  It is only used in template pages (like ADL) that
would probably never be seen as pages themselves. So I'm not sure how
it would conflict.

Also, if I used the first option you gave me below (thanks again for
the help Pm!), it should avoid conflicting with any of the markups you
mentioned above as everyone of them contains some other character
beside letters/numbers ( - + = | $ ! ).  In this situation, I'm
inclined to keep the {field}.

Nevertheless I'd be willing to use one of the others (I like {$|var}
best on your recommendation, and to be consistent with Martin's
recipe.  But I will probably still need help with the pattern. Still,
I'd just as soon save a couple key strokes.  So let me know if you
really think it is really necessary given my very limited use of this.
 ie, just in templates. I've found following some of your other
suggestions for ZAP *extremely* helpful.

Cheers,
Caveman




More information about the pmwiki-users mailing list