Table of Contents

Class: HTML Zope-2.2.1-src/lib/python/DocumentTemplate/DT_HTML.py

HTML Document Templates

HTML Document templates use HTML server-side-include syntax, rather than Python format-string syntax. Here's a simple example:

      <!--#in results-->
        <!--#var name-->
      <!--#/in-->

HTML document templates quote HTML tags in source when the template is converted to a string. This is handy when templates are inserted into HTML editing forms.

Base Classes   
DT_String.String
Methods   
SubTemplate
__str__
manage_edit
manage_editForm
management_interface
parseTag
quotedHTML
tagre
varExtra
  SubTemplate 
SubTemplate ( self,  name )

  __str__ 
__str__ ( self )

  manage_edit 
manage_edit (
        self,
        data,
        REQUEST=None,
        )

edit a template

  manage_editForm 
manage_editForm (
        self,
        URL1,
        REQUEST,
        )

  management_interface 
management_interface ( self )

Hook to allow public execution of management interface with everything else private.

these should probably all be deprecated.

  parseTag 
parseTag (
        self,
        tagre,
        command=None,
        sargs='',
        )

Parse a tag using an already matched re

Return: tag, args, command, coname

where: tag is the tag, args is the tag's argument string, command is a corresponding command info structure if the tag is a start tag, or None otherwise, and coname is the name of a continue tag (e.g. else) or None otherwise

Exceptions   
ParseError
  quotedHTML 
quotedHTML (
        self,
        text=None,
        character_entities=((( '&' ), '&' ), (( "<" ), '<' ), (( ">" ), '>' ), (( '"' ), '"' ) ),
        )

  tagre 
tagre ( self )

  varExtra 
varExtra ( self,  tagre )


Table of Contents

This document was automatically generated on Mon Sep 4 07:33:06 2000 by HappyDoc version r0_6