summaryrefslogtreecommitdiff
path: root/docs/zcml/asset.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-01-18 12:27:56 -0500
committerChris McDonough <chrism@plope.com>2011-01-18 12:27:56 -0500
commit8b4146009da0b612e8e001e68cd5f6f63d361c53 (patch)
tree5de4e743b2c007c0d5202db7be883d21cfe2bc88 /docs/zcml/asset.rst
parent566004501e8a28c0ba8f8c882ca5ea0742e5d285 (diff)
parentc9c3c487bcaedeca97bb6463a00188b0dc01203a (diff)
downloadpyramid-8b4146009da0b612e8e001e68cd5f6f63d361c53.tar.gz
pyramid-8b4146009da0b612e8e001e68cd5f6f63d361c53.tar.bz2
pyramid-8b4146009da0b612e8e001e68cd5f6f63d361c53.zip
Merge branch 'zcmlless'
Diffstat (limited to 'docs/zcml/asset.rst')
-rw-r--r--docs/zcml/asset.rst65
1 files changed, 0 insertions, 65 deletions
diff --git a/docs/zcml/asset.rst b/docs/zcml/asset.rst
deleted file mode 100644
index af7a6db94..000000000
--- a/docs/zcml/asset.rst
+++ /dev/null
@@ -1,65 +0,0 @@
-.. _asset_directive:
-
-``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
-~~~~~~~~
-
-.. topic:: Overriding a Single Asset File
-
- .. code-block:: xml
- :linenos:
-
- <asset
- to_override="some.package:templates/mytemplate.pt"
- override_with="another.package:othertemplates/anothertemplate.pt"
- />
-
-.. topic:: Overriding all Assets in a Package
-
- .. code-block:: xml
- :linenos:
-
- <asset
- to_override="some.package"
- override_with="another.package"
- />
-
-.. topic:: Overriding all Assets in a Subdirectory of a Package
-
- .. code-block:: xml
- :linenos:
-
- <asset
- to_override="some.package:templates/"
- override_with="another.package:othertemplates/"
- />
-
-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`.