[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Using Zope Page Templates
webmaster@zope.org
webmaster@zope.org
Sun, 22 Sep 2002 07:48:40 -0400
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx#2-100
---------------
Zope Page Templates help you build web pages for your web
applications. Templates make it easier for you to use normal HTML
tools and techniques to build web pages. They also provide
convenient hooks to allow you to attach them to your
applications. Page Templates help designers and programmers work
together to produce web applications. In Chapter 9, "Advanced
Page Templates" you will learn about powerful template techniques
like Python expressions, and macros.
% Anonymous User - Apr. 27, 2002 11:14 pm:
I'm sold on the ease of using templates and that scripts should be used instead of complex DTML, but don't
see where they fit in with normal DTML docs and methods - will templates ultimately replace them? Can they
work together as in a DTML var plugs in a snippet of template so that TAL tags work with modular assembly of
DTML pages? Is it vice versa - that templates get embedded with DTML calls. I presume a DTML-var tag is
ineffective in a template and a TAL tag is ineffective in a DTML document or method - so how do you get the
best of both?
% Anonymous User - May 1, 2002 8:56 pm:
Page templates are good for building HTML pages. They cannot render non-SGML output.
DTML is good for building unstructured pages (like SQL methods), and it can render almost anything.
This is the essential difference between the two. There is overlap, but they are both going to stick around
in Zope probably forever.
You can call DTML methods from page templates and vice versa.
% Anonymous User - May 31, 2002 2:27 am:
The 'magic' python scripts used need either more careful explanation in this chapter or should be reserved
for the advanced chapter.
% Anonymous User - Sep. 22, 2002 7:48 am:
Rather advanced: is it possible to mix dtml and tal in one doc and cascade processing?