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.Library
representing theimg
static folder.
- wuttaweb.static.favicon¶
A
fanstatic.Resource
representing theimg/favicon.ico
image file.
- wuttaweb.static.logo¶
A
fanstatic.Resource
representing theimg/logo.png
image file.
- wuttaweb.static.testing¶
A
fanstatic.Resource
representing theimg/testing.png
image file.