[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Using Zope
Page Templates
webmaster at zope.org
webmaster at zope.org
Thu Apr 22 18:10:51 EDT 2004
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/ZPT.stx#2-74
---------------
Congratulations, you've successfully taken a mock-up and turned it
into a dynamic Page Template. This example illustrates how Page
Templates work well as the "presentation layer" to your
applications. The Page Templates present the application logic
(the Python-based scripts) and the application logic works with the data
in your site (the files).
% Anonymous User - Dec. 2, 2003 8:05 pm:
once i figgered out how to set the publish folder, & that the object needs to exist in the zope database
before you publish to it, i found this part of the tutorial quite useful. i am interested in learning how to
use zope to build w/ markup and python, so i dont agree w/ the complaint that this shld be all about tal. the
balance is pretty good
% Anonymous User - Dec. 2, 2003 8:24 pm:
except that when i open index_html in mozilla composer, i get the expanded html, & if i change the file &
save it back, the expanded html overwrites the tal tags. i thought the tal was supposed to survive the round
trip. wassup?
jp
% Anonymous User - Apr. 22, 2004 6:10 pm:
IIRC, Mozilla Composer has a built-in "washer": The TAL attributes are naturally outside the specs that it
tries to make the document conform to. Try looking for a way to turn the "washing" off.
Ideally, the template document should declare a DOCTYPE that includes the tal:xxx attributes as valid for all
elements, cf. how the XHTML 1.0 or HTML 4.01 DTDs "include" the standard attributes like dir and id.
As an aside, Microsoft Frontpage 2000 leaves it in. Of course FP has its own plethora of "extra" attributes
it sometimes uses... :)
More information about the ZDP
mailing list