wuttaweb.static¶
Static Assets
Note that (for now?) It is assumed that all (i.e. even custom) apps
will include this module somewhere during startup. For instance this
happens within wuttaweb.app.main():
pyramid_config.include('wuttaweb.static')
This allows for certain common assets to be available for all apps.
However, an attempt is being made to incorporate Fanstatic for use with the built-in static assets. It is possible the above mechanism could be abandoned in the future.
So on the Fanstatic front, we currently have defined:
- wuttaweb.static.img¶
A
fanstatic.Libraryrepresenting theimgstatic folder.
- wuttaweb.static.favicon¶
A
fanstatic.Resourcerepresenting theimg/favicon.icoimage file.
- wuttaweb.static.logo¶
A
fanstatic.Resourcerepresenting theimg/logo.pngimage file.
- wuttaweb.static.testing¶
A
fanstatic.Resourcerepresenting theimg/testing.pngimage file.