« Return to Thread: Serving static css files

Serving static css files

by Nicholas Moore :: Rate this Message:

Reply to Author | View in Thread

Edward,

I have the same problem in squeak, which I am just starting to use. It is strange because I have just migrated my sites from VW where they all work fine.

... looks like we are both missing something... ;-)

Edward Stow wrote:
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 ...


  

--
NJM TSR-i

Nicholas J Moore


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

 « Return to Thread: Serving static css files