summaryrefslogtreecommitdiff
path: root/CHANGES.txt
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-09-01 03:17:19 -0400
committerChris McDonough <chrism@plope.com>2012-09-01 03:17:19 -0400
commita7eba78fdb75e85b136b8b13add98c61f16a3790 (patch)
tree8c49cd4180ab15f792aab8f507bd2b230771bb4c /CHANGES.txt
parenta9289d95036eb23e973815e529d3db3fea235046 (diff)
parent9e99e37432fe494b21c1aa7c4b381ece5c9b2727 (diff)
downloadpyramid-a7eba78fdb75e85b136b8b13add98c61f16a3790.tar.gz
pyramid-a7eba78fdb75e85b136b8b13add98c61f16a3790.tar.bz2
pyramid-a7eba78fdb75e85b136b8b13add98c61f16a3790.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'CHANGES.txt')
-rw-r--r--CHANGES.txt19
1 files changed, 15 insertions, 4 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index c414ab74c..bb726738c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -103,10 +103,21 @@ Features
and ``HTTPMovedPermanently`` exceptions, so these can be caught by the
NotFound view (and other exception views).
-- The mako renderer now accepts a def name and returns the template def
- result for the view being called. The uri format using an asset spec is
- package:path/to/template#defname.mako. The old way of returning a tuple
- from the view is supported for backward compatibility, ('defname', {}).
+- The Mako renderer now accepts a def name in an asset spect. When the def
+ name is present in the asset spec, the system will render the template def
+ within the template and will return the result. An example asset spec is
+ ``package:path/to/template#defname.mako``. This will render the def named
+ ``defname`` inside the ``template.pt`` package instead of rendering the
+ entire template. The old way of returning a tuple from the view is
+ supported for backward compatibility, ('defname', {}).
+
+- The Chameleon ZPT renderer now accepts a macro name in an asset spec. When
+ the macro name is present in the asset spec, the system will render the
+ macro listed as a ``define-macro`` and return the result instead of
+ rendering the entire template. An example asset spec:
+ ``package:path/to/template#macroname.pt``. This will render the macro
+ defined as ``macroname`` within the ``template.pt`` template instead of the
+ entire templae.
- When there is a predicate mismatch exception (seen when no view matches for
a given request due to predicates not working), the exception now contains