« Return to Thread: Serving static css files

Serving static css files

by Edward Stow :: Rate this Message:

Reply to Author | View in Thread

Hi

I would like to serve static css files to render my pages.

I have been trying in my WebApplication subclass.

MyApp>>initPageHeaderLinks
        super initPageHeaderLinks.
        self addLinkToScreenStyleSheet: '/css/mycss.css'

The link is added to the html served to my browser but the css file
cannot be located. (404 error)

I note that the (AIDASite named 'mysite') homeDirectory returns './'
-- I assume this is relative to squeak.exe

I tried setting the absolute path with #homeDirectory: with no effect.

I am sure I'm missing something ...


--

Edward Stow
_______________________________________________
Aida mailing list
Aida@...
http://lists.aidaweb.si/mailman/listinfo/aida

 « Return to Thread: Serving static css files