[Seaside] How can I specify path to css and js libs?

James Foster Smalltalk at JGFoster.net
Sat Oct 11 00:08:42 UTC 2014


Can you provide a full URL (‘http://www.example.com/siteX/Lib/jQuery.js')?

The rule is that (for security reasons) you can’t reach any files outside your domain.

James


On Oct 10, 2014, at 12:12 PM, Mariano Martinez Peck <marianopeck at gmail.com> wrote:

> Hi guys, 
> 
> I am currently serving my css and js static files with nginx. But so far, all these were generated in the default root path. For example:
> 
> <script type="text/javascript" src="/JQDevelopmentLibrary/jQuery.js"></script>
> <link rel="stylesheet" type="text/css" href="/TBSDevelopmentLibrary/css/bootstrap.css"/>
> 
> etc...
> 
> Now...I would like to be able to set a different prefix path. For example, 'siteX', and then urls become:
> 
> <script type="text/javascript" src="/siteX/JQDevelopmentLibrary/jQuery.js"></script>
> <link rel="stylesheet" type="text/css" href="/siteX/TBSDevelopmentLibrary/css/bootstrap.css"/>
> 
> Why I want this?  Because I want to be able to catch these into nginx locations and search the files in different places. 
> 
> Any idea how can I do this?
> 
> Thanks, 
> 
> -- 
> Mariano
> http://marianopeck.wordpress.com
> _______________________________________________
> 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/20141010/3556679d/attachment.htm


More information about the seaside mailing list