Re: Style Sheet difficulties

Grant McLean <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <1115326766.11257.6.camel@localhost>
On Thu, 2005-05-05 at 17:54 +0000, garry espe wrote:
> I have been experimenting with petal templates and perl.  I am having no luck
> incorporating style sheets.
...

> And here are the error messages in the apache log:
> 
> [Thu May  5 11:22:02 2005] [error] [client 172.31.36.67]  Bareword found where
> operator expected at /var/www/perl/style.css line 2, near "5px"
> 	(Missing operator before px?)

It appears that your stylesheet is being interpreted as a Perl script.
This is definitely not a Petal problem, but possibly an Apache config
issue.

Are you calling Petal from a CGI script?  If so, the stylesheet probably
shouldn't be in the CGI directory.  Perhaps you could move it to the
docroot directory and change you template to include a leading /

  @import url(/style.css);

By the way, is there any reason why you're using import rather than a
<link> tag?:

  <link rel="stylesheet" type="text/css" href="/style.css" />

If you're not using CGI, are you using mod_perl?  Perhaps you have a
Perl handler configured on a whole directory rather than just certain
file extensions?

Regards
Grant
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.