BackTalk to Document The Zope Book (2.6 Edition)/Appendix A: DTML Reference

[email protected]
Newsgroups gmane.comp.web.zope.zdp
Message-ID <[email protected]>
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/AppendixA.stx#1-0

---------------

  DTML is the *Document Template Markup Language*, a handy presentation and
  templating language that comes with Zope.  This Appendix is a reference to
  all of DTMLs markup tags and how they work.

    % Anonymous User - Apr. 16, 2002 4:24 pm:
     A TOC would be welcome here, so we could jump to a particuliar section of the reference of scrolling the
     whole doc.

    % Anonymous User - Apr. 16, 2002 4:25 pm:
     Last comment should read "... instead of scrolling the whole doc."  Oups!

    % Anonymous User - June 5, 2002 1:19 am:
     I guess no one read your comments.

    % Anonymous User - June 20, 2002 6:45 pm:
     <a href='#2-3'>Call</a>

    % Anonymous User - June 20, 2002 6:46 pm:
     I guess the part about  urls being linked was just a tease.

    % Anonymous User - June 20, 2002 6:53 pm:
     <a href="http://www.zope.org/Documentation/ZopeBook/AppendixA.stx#2-3">Call</a>

    % Anonymous User - Jan. 8, 2004 11:55 am:
     <dtml-call Variable|expr="Expression">

     <dtml-comment>[this space not executed]</dtml-comment>

     functions: DTML Functions

     <dtml-if ConditionVariable|expr="ConditionExpression">
     [<dtml-elif ConditionVariable|expr="ConditionExpression">]
      ...
     [<dtml-else>]
     </dtml-if [comment]>

     <dtml-in SequenceVariable|expr="SequenceExpression">
     [<dtml-else>]
     </dtml-in [comment]>

     <dtml-let [Name=Variable][Name="Expression"]...>
     </dtml-let>

     <dtml-mime>
     [<dtml-boundary>]
     ...
     </dtml-mime>

     <dtml-raise ExceptionName|ExceptionExpression>[errormessage]</dtml-raise>

     <dtml-return ReturnVariable|expr="ReturnExpression">

     <dtml-sendmail>

     </dtml-sendmail>

     <dtml-sqlgroup [where]>
     [<dtml-or>]
     [<dtml-and>]
     ...
     </dtml-sqlgroup>

     <dtml-sqltest Variable|expr="VariableExpression">

     <dtml-sqlvar Variable|expr="VariableExpression">

     <dtml-tree [VariableName|expr="VariableExpression"]>
     </dtml-tree>

     <dtml-try>
     <dtml-except [ExceptionName] [ExceptionName]...>
     ... 
     [<dtml-else>]
     </dtml-try>

     <dtml-try>
     <dtml-finally>
     </dtml-try>

     <dtml-unless ConditionVariable|expr="ConditionExpression">
     </dtml-unless>

     <dtml-var Variable|expr="Expression">
     &dtml-variableName;

     <dtml-with Variable|expr="Expression">
     </dtml-with>

_______________________________________________
ZDP maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zdp
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.