sitemesh.xml 1.18 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<sitemesh>
  <property name="decorators-file" value="/WEB-INF/decorators.xml" /> 
  <excludes file="${decorators-file}" /> 
  <page-parsers>
  <parser content-type="text/html" class="com.opensymphony.module.sitemesh.parser.FastPageParser" /> 
  </page-parsers>
  <decorator-mappers>
    <mapper class="com.opensymphony.module.sitemesh.mapper.PageDecoratorMapper">
      <param name="property.1" value="meta.decorator" /> 
      <param name="property.2" value="decorator" /> 
    </mapper>
    <mapper class="com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper">
      <param name="decorator.parameter" value="decorator" />
    </mapper>
    <mapper class="com.opensymphony.module.sitemesh.mapper.PrintableDecoratorMapper">
      <param name="decorator" value="printable" /> 
      <param name="parameter.name" value="printable" /> 
      <param name="parameter.value" value="true" /> 
    </mapper>
    <mapper class="com.opensymphony.module.sitemesh.mapper.FileDecoratorMapper" /> 
    <mapper class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
      <param name="config" value="${decorators-file}" /> 
    </mapper>
  </decorator-mappers>
</sitemesh>