sitemesh3 配置文件

来源:互联网 发布:eplan更新主数据 编辑:程序博客网 时间:2024/06/06 00:42
 <!-- 配置默认的渲染器. 将应用于所有路径. -->  
  <mapping decorator="/default-decorator.html"/>  
  
  <!-- 配置特定路径的渲染器. -->  
  <mapping path="/admin/*" decorator="/another-decorator.html"/>  
  <mapping path="/*.special.jsp" decorator="/special-decorator.html"/>  
  
  <!-- 配置多个渲染器. -->  
  <mapping>  
    <path>/articles/*</path>  
    <decorator>/decorators/article.html</decorator>  
    <decorator>/decorators/two-page-layout.html</decorator>  
    <decorator>/decorators/common.html</decorator>  
  </mapping>  
  
  <!-- 不被渲染的路径. -->  
  <mapping path="/javadoc/*" exclue="true"/>  
  <mapping path="/brochures/*" exclue="true"/>  
0 0
原创粉丝点击