Skip to content

Instantly share code, notes, and snippets.

@joewalnes
Created September 6, 2009 01:41
Show Gist options
  • Save joewalnes/181600 to your computer and use it in GitHub Desktop.
Save joewalnes/181600 to your computer and use it in GitHub Desktop.
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