[Pmwiki-users] Re: Comments in new tmpl files

Patrick R. Michaud pmichaud
Sun Feb 22 13:32:03 CST 2004


On Sun, Feb 22, 2004 at 02:20:52PM -0600, John Feezell wrote:
> On Sun, 22 Feb 2004 08:06:56 -0700, Patrick R. Michaud wrote:
> >On Sun, Feb 22, 2004 at 09:08:24AM -0600, John Feezell wrote:
> >>Will it be possible to use "comment" instructions to temporarily 
> >>suspend a
> >>particular portion of the template?
> >
> >Umm, I don't quite understand what you mean here...can you give an
> >example?
> 
> My thinking is along the following lines:
> 
> Take the Classic tmpl file.  In it are the following lines:
> [...]
>       <a href='$PageUrl?action=diff'>$[Page History]</a> -
>       <a href='$PageUrl?action=print' target='_blank'>$[Printable 
> View]</a> -
> <!-- This section needs to be refined and extended. -JF 2/22/04
>       <a href='$ScriptUrl/$[$Group/RecentChanges]'>$[Recent Changes]</a> -
>       <a href='$ScriptUrl/$[PmWiki/WikiHelp]'>$[WikiHelp]</a> -
>       <a href='$ScriptUrl/$[Main/SearchWiki]'>$[SearchWiki]</a>
> -->
>     </div>

The answer to your question is "yes"... HTML comments are still
HTML comments and PmWiki doesn't strip them from the output when
it parses the template.  It simply uses them to figure out the structure
of the template components.  So in your example above, the <!-- section -->
would appear in the HTML output text (with the $-variables substituted),
but the browser will still see it as an HTML comment so it wouldn't
be displayed by the browser.

Pm



More information about the pmwiki-users mailing list