Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Invoking on it's own will output a detailed help message:

No Format

java -jar sitemesh-3.x.jar

Arguments

The following arguments need to be passed to the command line:

-src

Required

Path to source directory, containing content and decorators

-dest

Required

Path to destination directory, where decorated content will be written

-dest

Required

Path to destination directory, where decorated content will be written

-config

One of these

Path to configuration file

-decoratorMapping

TODO

FILE1 FILE2 FILE3...

Required

List of content files to apply decorators to. These must be relative to the src directory

...

Example

No Format

java -jar sitemesh-3.x.jar -src project/src -config project/sitemesh.xml -dest project/build index.html page1.html page2.html

Ant Task

Overview

The sitemesh.jar comes prepackaged with a custom Ant task that can be used for offline processing. In the following examples, we're going to look at how to install and use the SiteMeshTask to generate static content in the offline mode.

...