[pmwiki-users] {$$vars}

Patrick R. Michaud pmichaud at pobox.com
Tue May 1 12:51:48 CDT 2007


On Tue, May 01, 2007 at 12:48:42PM -0500, Patrick R. Michaud wrote:
> On Tue, May 01, 2007 at 06:29:28PM +0100, Hans wrote:
> > Tuesday, May 1, 2007, 5:19:45 PM, Martin Fick wrote:
> > > Hmm, I guest this means that we already have
> > > templating built into pmwiki, just not with the
> > > include command!
> > 
> > The (:include :) directive allows data display via a template, by
> > using this syntax:
> > 
> >   (:include <templatepage> basepage=<datapage>:)
> > 
> 
> Correction:  Any {$:var} on <templatepage> will be replaced by the
> corresponding PTV of <datapage>.

Just to be *really* precise:  What really happens is that
any {$:var} on <templatepage> gets replaced by {<datapage>$:var},
which the markup engine subsequently evaluates to be the value of 
$:var in <datapage> .

Pm



More information about the pmwiki-users mailing list