[Seaside] Newbie questions
Alain Fischer
seaside@lists.squeakfoundation.org
Tue, 13 Aug 2002 21:20:43 +0200
Hi Pablo,
I have not used Seaside for a while, the following tips could have
changed
with recent version of Seaside.
> 1) If I have:
> Test>html
> ^'<img src="image.gif">'
>
> where should I put the file "image.gif" to get it displayed on the
> browser ?
- You must have a static content server (Comanche is able to do this)
- You must configure the "Document Root" of your application in Seaside
to point to your static content server.
> 2) I have a jsp/asp background (and a little of zope) and I found that
> is
> much easier to write html code outside Squeak. Is there a way to use
> file
> based templates ? (I saw the class IAFileTemplate but I couldn't figure
> out
> how to use it).
In your component define the following method:
template
^ IAFileTemplate new
file: 'toto.html';
bindWith: [:t | self addBindingsTo: t]