summaryrefslogtreecommitdiff
path: root/docs/api/renderers.rst
blob: 0caca02b4248f9936c3b89a455083e8cbd1084af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.. _renderers_module:

:mod:`pyramid.renderers`
---------------------------

.. module:: pyramid.renderers

.. autofunction:: get_renderer

.. autofunction:: render

.. autofunction:: render_to_response

.. autoclass:: JSON

   .. automethod:: add_adapter

.. autoclass:: JSONP

   .. automethod:: add_adapter

.. attribute:: null_renderer

   An object that can be used in advanced integration cases as input to the
   view configuration ``renderer=`` argument.  When the null renderer is used
   as a view renderer argument, Pyramid avoids converting the view callable
   result into a Response object.  This is useful if you want to reuse the
   view configuration and lookup machinery outside the context of its use by
   the Pyramid router.