Created
September 6, 2009 01:41
-
-
Save joewalnes/181600 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
1. Basic usage: | |
<sitemesh srcdir="src" | |
config="myconfig.xml" | |
destdir="dest" | |
includes="*.html"/> | |
2. Includes/excludes: | |
<sitemesh srcdir="src" | |
config="myconfig.xml" | |
destdir="dest" | |
includes="**/*.html" | |
excludes="decorators/*"/> | |
3. No config defined: Should automatically pick up src/WEB-INF/sitemesh3.xml | |
<sitemesh srcdir="src" | |
destdir="dest" | |
includes="*.html"/> | |
4. Configuration inline: | |
<sitemesh srcdir="src" destdir="dest" includes="*.html"> | |
<mapping path="/*" decorator="/decorators/main.html"/> | |
<mapping path="/admin/*" decorator="/decorators/admin.html"/> | |
</sitemesh> | |
5. SiteMeshFileSets: | |
<sitemesh destdir="dest" excludes="decorators/*"> | |
<sitemeshfileset dir="src" decorator="/decorators/main.html"> | |
<include name="**/*.html"/> | |
<exclude name="admin/*"/> | |
</sitemeshfileset> | |
<sitemeshfileset dir="src" decorator="/decorators/admin.html"> | |
<include name="admin/*"/> | |
</sitemeshfileset> | |
</sitemesh> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment