Created
September 6, 2009 20:00
-
-
Save joewalnes/181950 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sitemesh> | |
<!-- There can be multiple <mapping> elements --> | |
<!-- Apply decorator to all paths by default, unless another matches --> | |
<mapping decorator="/default-decorator.html"/> | |
<!-- More mappings, with paths. --> | |
<mapping path="/path1/*" decorator="/another-decorator.html"/> | |
<mapping path="/path1/*" decorator="/another-decorator.html"/> | |
<!-- Alternate convention: Use when one path needs to map to more than 1 decorator. --> | |
<mapping> | |
<path>/path2/*</path> | |
<decorator>/dec1.html</decorator> | |
<decorator>/dec2.html</decorator> | |
<decorator>/dec3.html</decorator> | |
</mapping> | |
<!-- Exclusions --> | |
<mapping path="/path1/*" exclude="true"/> | |
<mapping> | |
<path>/path2/*</path> | |
<exclude/> | |
</mapping> | |
<!-- Only be 1 or 0 <content-processor> elements --> | |
<!-- Deploy more TagRuleBundles into the default ContentProcessor --> | |
<content-processor> | |
<tag-rule-bundle class="org.x.MyBundle"/> | |
<tag-rule-bundle class="org.x.AnotherBundle"/> | |
</content-processor> | |
<!-- OR: replace the whole ContentProcessor implementation (cannot do this, and the one above) --> | |
<content-processor class="org.x.MyContentProcessor"/> | |
<!-- 0 to n Mime-Types (only used by Filter) --> | |
<mime-type>text/html</mime-type> | |
<mime-type>text/wml</mime-type> | |
<!-- directories (only used by Offline) --> | |
<source-dir>/foo</source-dir> | |
<dest-dir>/ddd</dest-dir> | |
</sitemesh> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment