Table of Contents

Module: templates ./src/peak/web/templates.py

XML/XHTML Templates for peak.web, similar to Twisted's Woven

TODO

  • implement interaction wrapper for "/skin", "/request", etc. data paths

  • implement sub-template support (convert doc->DOMlet in another doc)

  • add hooks for DOMlets to validate the list of supplied parameters

  • list DOMlet needs iteration variables, maybe paging

  • need translation DOMlets, among lots of other kinds of DOMlets

  • support DTD fragments, and the rest of the XML standard

Imported modules   
from __future__ import generators
from interfaces import *
from peak.api import *
from publish import TraversalPath
from xml.sax.saxutils import quoteattr, escape
Functions   
URLTag
infiniter
  URLTag 
URLTag (
        parentComponent,
        componentName=None,
        domletProperty=None,
        **kw,
        )

Create a URLText or URLAttribute DOMlet based on parameters

  infiniter 
infiniter ( sequence )

Classes   

ContentReplacer

Abstract base for elements that replace their contents

DOMletAsWebPage

Render a template component

DOMletParser

Parser that assembles a Document

DOMletState

Execution state for a DOMlet

Element

List

Literal

Simple static text node

TaglessElement

Element w/out tags

TaglessText

Text w/out open/close tag

TaglessXML

XML w/out open/close tag

TemplateDocument

Document-level template element

Text

Replace element contents w/data (XML-quoted)

URLAttribute

Put the URL in an attribute

URLText

Write absolute URL as body text

XML

Replace element contents w/data (XML structure)


Table of Contents

This document was automatically generated on Tue Feb 17 19:55:56 2004 by HappyDoc version 2.1