sontek/pyramid_webassets — pull request #5 by tilgovi (2012-06-19 18:40:50+00:00)
Title: Fixes for asset spec support

With this change, pyramid_webassets adds a static view for the user, mapping the base directory to the base url from the configuration. In this way, `request.static_url` can be used for all files.

Absolute asset specifications will be served if they have their own static views (such as those provided by deform). In my testing, I can specify a bundle with contents like "deform:static/js/jquery-1.7.2.min.js" and the url (http://example.com/static-deform/js/jquery-1.7.2.min.js).

Relative paths are still relative to the base dir, but the new static view ensures that absolute urls can still be generated for these URLs.