[Seaside] Re: [Seaside-dev] Seaside 3.0 API for accessing external stylesheet and javascript files?

Conrad Taylor conradwt at gmail.com
Thu Dec 24 14:29:38 UTC 2009


On Thu, Dec 24, 2009 at 4:42 AM, Lukas Renggli <renggli at gmail.com> wrote:

> > Lukas, it seems that WAFileLibrary serves the static content from the
> image.
>
> Not necessarily, see JQGoogleLibrary.
>
> >  I'm really looking to serve all my static content (i.e. images,
> > stylesheets, and javascripts files) from Apache or another web server.
>
> You can use the same approach if you serve from Apache.
>
> If you don't want to create your own FileLibrary class you can also
> override #updateRoot: in your root component with the same contents:
>
> YourFileLibrary / YourRootComponent >> updateRoot: anHtmlRoot
>        super updateRoot: anHtmlRoot.
>        anHtmlRoot javascript
>                url: '
> http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'
>

Lukas, I saw example within the JQGoogleLibrary and I guess the following is
legal as well:

https://gist.github.com/29774f07f9a1468140f9

Finally, it wasn't clear how to set the charset for both the javascript and
stylesheet files.

-Conrad


>
> Instead of #url: you might also want to use #resourceUrl: instead,
> which uses the configured resource url path as the root.
>
> Lukas
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20091224/60244d63/attachment.htm


More information about the seaside mailing list