diff options
| author | Michael Merickel <michael@merickel.org> | 2013-09-04 22:41:46 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2013-09-04 23:13:51 -0500 |
| commit | 9ed074e28c256842b902dc7ded8edb1f696e225b (patch) | |
| tree | db41a38b9ddb8c60c349c6821b449fa5a7dd8b2f | |
| parent | 4315c0d5cf3224b8622c9b00cb6c72c86f1a9518 (diff) | |
| download | pyramid-9ed074e28c256842b902dc7ded8edb1f696e225b.tar.gz pyramid-9ed074e28c256842b902dc7ded8edb1f696e225b.tar.bz2 pyramid-9ed074e28c256842b902dc7ded8edb1f696e225b.zip | |
add example of rendering to the changelog
| -rw-r--r-- | CHANGES.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 5768ae2ea..46e6f7c8b 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,9 +17,15 @@ Major Backward Incompatibilities config.include('pyramid_mako') - If any unit tests are invoking either ``pyramid.renderers.render()`` or - ``pyramid.renderers.render_to_response()``, then the - ``pyramid.config.Configurator`` instance at the root of the unit test - should be also be updated to include the addons, as shown above. + ``pyramid.renderers.render_to_response()`` with either Mako or Chameleon + templates then the ``pyramid.config.Configurator`` instance at the root of + the unit test should be also be updated to include the addons, as shown + above. For example: + + config = pyramid.testing.setUp() + config.include('pyramid_mako') + + result = pyramid.renderers.render('mypkg:templates/home.mako', {}) 1.5a1 (2013-08-30) ================== |
