diff options
| author | Chris McDonough <chrism@plope.com> | 2012-08-29 16:06:17 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-08-29 16:06:17 -0400 |
| commit | 8b55a68adb54783895a91a9e1af800a7f8f22c07 (patch) | |
| tree | 973ea91197e26cc9e5b33db57350727631f03801 | |
| parent | 33bd53758ef69de22eb8d7282461da6ba3e35083 (diff) | |
| download | pyramid-8b55a68adb54783895a91a9e1af800a7f8f22c07.tar.gz pyramid-8b55a68adb54783895a91a9e1af800a7f8f22c07.tar.bz2 pyramid-8b55a68adb54783895a91a9e1af800a7f8f22c07.zip | |
garden
| -rw-r--r-- | CHANGES.txt | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index a9dd18985..62c37f374 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -81,10 +81,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 |
