[pmwiki-users] About {$:var} text-variables

Patrick R. Michaud pmichaud at pobox.com
Wed Sep 6 13:52:52 CDT 2006


On Wed, Sep 06, 2006 at 09:20:48AM +0200, Roman wrote:
> On 9/6/06, Kathryn Andersen wrote:
> > I *really* like the idea that the {$:var} stuff uses
> >
> >        Name: Patrick
> >        Version: 39
> >        State: Texas
> 
> I like this simple syntax as well but some more explicit syntax would
> be also desirable. I think we can expect quite common request to use
> text variables definitions together with tables because of vertical
> alignment of values or because of better styling. I doubt that this
> simple syntax would work with tables, e.g.
> 
> ||class=sometableclass
> ||Name:      ||Patrick ||
> ||Version:   ||39      ||
> ||State:     ||Texas   ||

Oooh, I like it.  But even if it's not a PmWiki default it will
be a customizable option.  Actually, individual sites will be
able to choose whatever syntax(es) they wish.

> One of J.Meiers's suggestions tries to solve this request. But there
> could be other ways, e.g. separate variable definition from its
> appearance. In this case, text variable definition should not appear
> in the HTML output:
> 
> (:some variable definition beginning:)
> Name: Patrick
> Version: 39
> State: Texas
> (:some variable definition end:)

We already have the capability to define values that aren't displayed... :-)

    (:if false:)
    Name: Patrick
    Version: 39
    State: Texas
    (:ifend:)

Pm




More information about the pmwiki-users mailing list