[pmwiki-users] {(...)} markup recipe available

Roman romat2 at gmail.com
Thu Apr 12 04:53:35 CDT 2007


Thank you for this recipe. I've immediately found lot of usages for
it. And it is extensible as usually!

The only comment I have is that I would transpose parameters of ftime
expression so second parameter (format) could be omitted. That would
allow users to specify only "when" parameter, for example {(ftime
"next Monday")} without the need to always specify format. In this
case, default format defined by administrator would be used.

Roman

On 4/11/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> I've now published my version of the {(...)} markup as a recipe,
> available at
>
>     http://www.pmwiki.org/wiki/Cookbook/MarkupExpressions
>
> The description on the recipe page only scratches the surface of
> what the recipe can do.  I'm particularly happy with the
> {(ftime ...)} markup, which seems to be able to handle just
> about any date-and-time formatting issue that I can think of
> to throw at it.
>
> Many thanks to Dominique Faure for ideas about nested expression
> handling.  Nested expressions allow for things like:
>
>     {(toupper (substr "Hello World" 2 7))}    # "LLO WOR"
>
>     {(substr (ftime "%A") 2 6)}               # "dnesda"
>
> The recipe is a CoreCandidate, and may find itself in the
> pmwiki-2.2.0 release stream before too long.  However, it's
> also a bit new, so it's possible/likely that some further
> tweaks will be made as I get feedback from people.
>
> Comments and questions welcomed as always.
>
> Pm
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



More information about the pmwiki-users mailing list