forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CFAS Webmaster <webmas...@cfas.org>
Subject Re: Javascript file processing...
Date Thu, 05 Jan 2006 00:34:36 GMT
Yes!

David Crossley wrote:

>CFAS Webmaster wrote:
>  
>
>How about this:
>  
>
This stuff does go into src/documentation/sitemap.xmap to answer Ross's 
question.

>...
><map:pipelines>
> <map:pipeline>
>...
><!-- ensure that the match deals with sub-directories -->
>   <map:match pattern="**dues.js">
><!-- or be very specific
>   <map:match pattern="**Committees/dues.js">
>-->
>     <map:read src="{project:content}/Committees/dues.js" 
>mime-type="application/x-javascript" />
><!-- use the correct mime-type as shown above in main/webapp/resources.xmap -->
>   </map:match>
> </map:pipeline>
></map:pipelines>
>  
>
I took the <map:match pattern="**Committees/dues.js"> version and 
corrected the mime-type and it works.  Yea!

>Or you could get very general like this.
>However, this might interefere too much with
>the core of Forrest.
><map:match pattern="**/*.js">
> <map:read src="{project:content}/{1}/{2}.js" 
>   mime-type="application/x-javascript" />
></map:match>
>  
>
I agree that it probably would interfere too much with the core parts of 
Forrest.

>I presume that you have the dues.js at
>src/documentation/content/Committees/dues.js
>  
>
Yes, that's where I'd like it to live.

>-David
>  
>
Thanks for helping again!
-Paul

Mime
View raw message