[Seaside] How can I specify path to css and js libs?
Johan Brichau
johan at inceptive.be
Sat Oct 11 07:12:55 UTC 2014
This what the resource base url setting [1] does.
I’m guessing you are including Seaside’s file libraries to add these resources to your application but that nginx captures the url’s generated by Seaside?
I think you have two options:
- forget about file libraries served by Seaside and reference the statically served files yourself (in #updateRoot: you do `` aRoot stylesheet resourceUrl: '/stylesheets/main.css’ ‘ ‘' )
- change the location where Seaside serves the file libraries (this is configurable)
Hope this helps
Johan
[1] http://book.seaside.st/book/in-action/serving-files/images
On 10 Oct 2014, at 21:12, 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/20141011/f43fe408/attachment.htm
More information about the seaside
mailing list