Edgewall Software

Changes between Version 28 and Version 29 of MarkupTemplates


Ignore:
Timestamp:
Aug 18, 2006, 6:35:56 PM (18 years ago)
Author:
cmlenz
Comment:

Documentation for template comments

Legend:

Unmodified
Added
Removed
Modified
  • MarkupTemplates

    v28 v29  
    492492              py:for="name in ('foo', 'bar', 'baz')" />
    493493}}}
     494
     495== Comments ==
     496
     497Normal XML/HTML comment syntax can be used in templates:
     498
     499{{{
     500#!xml
     501<!-- this is a comment -->
     502}}}
     503
     504However, such comments get passed through the processing pipeline and are by default included in the final output. If that's not desired, prefix the comment text with an exclamation mark:
     505
     506{{{
     507#!xml
     508<!-- !this is a comment too, but one that will be stripped from the output -->
     509}}}
     510
     511Note that it does not matter whether there's whitespace before or after the exclamation mark, so the above could also be written as follows:
     512
     513{{{
     514#!xml
     515<!--! this is a comment too, but one that will be stripped from the output -->
     516}}}
     517
    494518----
    495519See also: MarkupGuide, MarkupRecipes