You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2013/11/01 12:40:29 UTC

svn commit: r1537905 - /forrest/trunk/main/webapp/resources.xmap

Author: crossley
Date: Fri Nov  1 11:40:28 2013
New Revision: 1537905

URL: http://svn.apache.org/r1537905
Log:
Handle relative paths with project-level js and css resources.

Modified:
    forrest/trunk/main/webapp/resources.xmap

Modified: forrest/trunk/main/webapp/resources.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/main/webapp/resources.xmap?rev=1537905&r1=1537904&r2=1537905&view=diff
==============================================================================
--- forrest/trunk/main/webapp/resources.xmap (original)
+++ forrest/trunk/main/webapp/resources.xmap Fri Nov  1 11:40:28 2013
@@ -132,13 +132,15 @@ $Revision: 1.13 $
   </map:resources>
   <map:pipelines>
     <map:pipeline>
+<!-- skin-level js -->
       <map:match pattern="**skin/**.js">
         <map:read src="{lm:skin.js.{2}}" mime-type="text/javascript" />
       </map:match>
-<!-- @deprecated -->
-      <map:match pattern="**.js">
-        <map:read src="{lm:project.js.{1}}" mime-type="text/javascript" />
+<!-- project-level js -->
+      <map:match pattern="**scripts/**.js">
+        <map:read src="{lm:project.js.{2}}" mime-type="text/javascript" />
       </map:match>
+<!-- skin-level css -->
       <map:match pattern="**skin/**.css">
         <map:select type="exists">
           <map:when test="{lm:skin.css.xslt.{2}}">
@@ -154,9 +156,9 @@ $Revision: 1.13 $
           </map:otherwise>
         </map:select>
       </map:match>
-<!-- @deprecated -->
-      <map:match pattern="**.css">
-        <map:read src="{lm:project.css.{1}}" mime-type="text/css" />
+<!-- project-level css -->
+      <map:match pattern="**css/**.css">
+        <map:read src="{lm:project.css.{2}}" mime-type="text/css" />
       </map:match>
 <!-- special case corner generator pipeline -->
       <map:match pattern="skin/images**/*c-*-*-*-1*-2*-3*.png">