<div>Lukas, it seems that WAFileLibrary serves the static content from the image. I'm really looking to serve all my static content (i.e. images, stylesheets, and javascripts files) from Apache or another web server. I understand the Apache side of the configuration after reading sections 22.3.5 and 22.3.6 of the "Dynamic Web Development with Seaside". Also, the WAFileLibrary seems like a great deal of work to an external resource. In short, I was thinking that I could simply do the following:</div>
<div><br></div><div>stylesheets = #( "/stylesheets/main.css" "/stylesheets/a.css" "/stylesheets/main.css" ).</div><div>stylesheets do: [ :each | html link with: [ self type: "text/css" href: "/stylesheets/main.css" media: "screen" charset: "utf-8". ].</div>
<div>javascripts = #( "/stylesheets/main.css" "/stylesheets/a.css" "/stylesheets/main.css" ).</div><div>stylesheets do: [ :each | html script with: [ self type: "text/html" source: "/stylesheets/main.css" charset: "utf-8". ].</div>
<div><br></div><div>or something even easier</div><div><br></div><div>html link with: [ self all from: "/stylesheets" cache: true. ]. 'This will make all the stylesheets in /stylsheets available to the application.'</div>
<div><br></div><div>Now, I would like to insert the javascript files at the end of the page like this so that they are the last thing loaded when the page is rendered.</div><div><br></div>
<div>html script with: [ self all from: "/javascripts" cache: true. ]. 'This will make all the javascript files in /javascripts available to the application.'</div><div><br></div><div>Also, I come from a Rails background where 'cache => true' will generate a file which contains all the javascripts and a file that contains all</div>
<div>the stylesheets respectively. Other options can include "recursive:" and "fileName:"</div><div><br></div><div>-Conrad</div><div><br></div><div>On Thu, Dec 24, 2009 at 12:55 AM, Lukas Renggli <span dir="ltr"><<a href="mailto:renggli@gmail.com" target="_blank">renggli@gmail.com</a>></span> wrote:</div>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have a look at JQGoogleLibrary, it includes the jQuery libraries<br>
through Google. Compare it with JQDeploymentLibrary, it includes them<br>
locally. You can find that pattern for other Javascript code too.<br>
<br>
Also the class comment of WAFileLibrary is quite detailed. Feel free<br>
to ask a follow-up question if any of the above is not clear.<br>
<br>
Lukas<br>
<br>
PS: I answered that mail on <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a>,<br>
because this is not really a Seaside-Development question.<br>
<br>
2009/12/24 Conrad Taylor <<a href="mailto:conradwt@gmail.com" target="_blank">conradwt@gmail.com</a>>:<br>
<div><div></div><div>> Hi, I was wondering, where can one find the complete Seaside 3.0 API for<br>
> referencing external stylesheets and javascript files? Also, I would like<br>
> to reference these files from other domains like <a href="http://google.com" target="_blank">google.com</a> as well as the<br>
> local disk.<br>
> Thanks in advance,<br>
> -Conrad<br>
><br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> seaside-dev mailing list<br>
> <a href="mailto:seaside-dev@lists.squeakfoundation.org" target="_blank">seaside-dev@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
><br>
><br>
<font color="#888888"><br>
<br>
<br>
--<br>
Lukas Renggli<br>
<a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</font></blockquote></div><br>