cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <gkossakow...@apache.org>
Subject Re: Configure Reader for Dojo
Date Sun, 16 Sep 2007 10:55:13 GMT
christoph pisze:
> Hi,
> 
> how do I configure my Sitemap, that dojo has access to all js file it loads 
> dynamically.
> 
> I have the dojo file in Folder ./lib/dojo/dojo.js
> 
> So I would read the dojo.js like
> 
>             <!-- JavaScript scripts -->
> 		    <map:match pattern="*/*/*.js">
> 		      <map:read mime-type="text/javascript" src="{1}/{2}/{3}.js"/>
> 		    </map:match>
> 
> how do I define the Reader that the file in 
> /lib/dojo/src/animation
> /lib/dojo/src/cal
> .....
> are read as well?

Use something like this:
<map:match pattern="**.js">
  <map:read mime-type="text/javascript" src="{1}.js"/>
</map:match>

If you wish to read about double asterisk, take a look at this page:
http://cocoon.apache.org/2.1/userdocs/default/wildcarduri-matcher.html

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message