Hi Rodney,
Thanks!!
Your solution of making inherit=>undef works perfectly.

I' am new to Mason. As I understand $r is Apache reference object.
What is the effect of setting content_type('text/css') ?

Actually in the set up I am developing, everything is working fine
under an existing directory under DocumentRoot. Here the
javascript/css files do not have inherit => undef in them.

 But when I set up a new directory under DocumentRoot and create files
in it, I am facing this problem. I am curious to know how this setup
is allowing correct rendering of javascript , css.
I have looked at the httpd.conf, but did not find any particular entry
for css directory.
Can you give me pointers to where this filtering logic is placed ?

Thanks
Shiladitya

On Mon, Jan 19, 2009 at 4:15 AM, Rodney Rindels <rrind...@gmail.com> wrote:
> I think the problem might be that you have autohandler inheritance in your
> css and javascript directories.
>
> You can leave it on, and use.
>
> <%flags>
>                inherit=>undef
> </%flags>
> <%init>
> $r->content_type('text/css');
> </%init>
>
> in your css and and javascript files, which I do to render my css and
> javascript with perl..
>
> or in your apache configuration turn off mason for those directories
> altogether by setting the default handler
>
> <Location /css>
>       SetHandler default-handler
> </Location>
>
> Hth..
>
> Rodney
>



-- 
Shiladitya
------------------------------------------------------------------------
"If I Had More Time I Would Write a Shorter Letter"
 -- Blaise Pascal

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to