Hi,
I would port ILDiskDirectory from the GST version of Iliad to handle
this.
https://github.com/NicolasPetton/iliad/blob/master/Core/GST/ILDiskDirectory.stIt would make things a lot easier :)
Cheers,
Nico
On Wed, 2011-10-19 at 18:17 -0700, Thiago SL wrote:
> The method is in SwazooIliad class.
>
> > | site composite resource |
> > composite := CompositeResource new uriPattern: '/'.
> > resource := FileResource uriPattern: 'hello.html' filePath: '/path/to/
> > my/static/file'.
> > composite addResource: resource.
> >
> > site := self siteClass default port: 8888.
> > site addResource: composite.
> >
> > SwazooServer startSite: self siteClass defaultName
> >