src/pyams_utils/data.py
changeset 96 a543685e0ca1
parent 72 9049384a2bd4
child 97 02671458ec76
--- a/src/pyams_utils/data.py	Mon Jun 19 16:24:22 2017 +0200
+++ b/src/pyams_utils/data.py	Mon Jun 19 16:26:33 2017 +0200
@@ -74,6 +74,7 @@
     This TALES extension is to be used in Chameleon templates to define a custom data attribute
     which stores all object data (see `pyams_utils.interfaces.data.IObjectData` interface), like this::
 
+    .. code-block:: html
         <div tal:attributes="data-ams-data extension:object_data(context)">...</div>
     """
 
@@ -93,6 +94,7 @@
     This TALES extension can be used to get a request data, previously stored in the request via an annotation.
     For example::
 
+    .. code-block:: html
         <div tal:content="extension:request_data('my.annotation.key')">...</div>
     """
 
@@ -108,6 +110,7 @@
     This TALES extension can be used to get a request data, previously stored in the request via an annotation.
     For example::
 
+    .. code-block:: html
         <div tal:content="extension:request_data('my.annotation.key')">...</div>
     """