src/source/howto-portlet.rst
branchdoc-dc
changeset 69 92e33e6b9e92
parent 58 7e5e72ddeeb2
child 75 5cf9c8a16aee
--- a/src/source/howto-portlet.rst	Fri May 18 11:33:19 2018 +0200
+++ b/src/source/howto-portlet.rst	Wed May 23 14:24:30 2018 +0200
@@ -160,9 +160,14 @@
 .. code-block:: python
 
     @adapter_config(name='another-renderer',
-                    context=(IPortalContext, IPyAMSLayer, Interface, INewPortletSettings), provides=IPortletRenderer)
+                    context=(IPortalContext, IPyAMSLayer, Interface, INewPortletSettings),
+                    provides=IPortletRenderer)
     @template_config(template='my-portlet-render-2.pt', layer=IPyAMSLayer)
     class AnotherNewPortletRenderer(PortletRenderer):
         """Another new portlet renderer"""
 
         label = _("Another comment renderer")
+
+.. tip::
+    You can use an other template without create a new renderer component,
+    with :py:func:`pyams_utils` to override the default template with you own.