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 the img static folder.

wuttaweb.static.favicon

A fanstatic.Resource representing the img/favicon.ico image file.

A fanstatic.Resource representing the img/logo.png image file.

wuttaweb.static.testing

A fanstatic.Resource representing the img/testing.png image file.