You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/classic-ui/views.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -724,8 +724,7 @@ To use the same template code several times you can either:
724
724
- share a `ViewPageTemplate` instance between views and using it several times.
725
725
726
726
```{Note}
727
-
The Plone 2.x way of doing this with TAL template language macros is discouraged as a way to provide reusable functionality in your add-on product.
728
-
This is because macros are hardwired to the TAL template language, and referring to them outside templates is difficult.
727
+
The old way of doing this with TAL template language macros is discouraged as a way to provide reusable functionality in your add-on product. This is because macros are hardwired to the TAL template language, and referring to them outside templates is difficult.
729
728
730
729
If you ever need to change the template language, or mix in other template languages, you can do better when templates are a feature of a pure Python based view, and not vice versa.
731
730
```
@@ -763,7 +762,7 @@ Then you can render the summary template in the main template associated with `P
- [`Five` version](https://github.com/zopefoundation/Zope/blob/d1814d0a6bddb615629b552de10e9aa5ad30a6da/src/Products/Five/browser/__init__.py#L20) with .
982
981
[`Products.Five`](https://github.com/zopefoundation/Zope/blob/master/src/Products/Five/doc/manual.txt) is a way to access some Zope 3 technologies from the Zope codebase, which is used by Plone.
983
982
984
983
Compare the differences in code.
@@ -999,7 +998,7 @@ The difference is that the `Five` version supports:
999
998
- The `provider:` TAL expression.
1000
999
- Other Plone-specific TAL expression functions, such as `test()`.
1001
1000
- Usually, Plone code needs the `Five` version of `ViewPageTemplateFile`.
1002
-
- Some subsystems, notably the `z3c.form` package, expect the Zope 3 version of `ViewPageTemplateFile` instances.
1001
+
- Some subsystems, notably the `z3c.form` package, expect the Zope 3 (not Five) version of `ViewPageTemplateFile` instances.
0 commit comments