Permalink
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (45 sloc) 1.29 KB

asset

The asset directive adds an asset override for a single static file/directory asset.

Attributes

to_override
A :term:`asset specification` specifying the asset to be overridden.
override_with
A :term:`asset specification` specifying the asset which is used as the override.

Examples

Overriding a Single Asset File

Overriding all Assets in a Package

Overriding all Assets in a Subdirectory of a Package

Alternatives

The :meth:`pyramid.config.Configurator.override_asset` method can be used instead of the resource ZCML directive.

This directive can also be invoked as the resource ZCML directive for backwards compatibility purposes.

See Also

See also :ref:`asset_zcml_directive`.