Table of Contents

Class: IDOMletNode ./src/peak/web/interfaces.py

A component of a page template

Base Classes   
Interface
Methods   
renderFor
  renderFor 
renderFor ( data,  state )

Write template's output by calling state.write() 0 or more times

data is an ITraversalContext for the object being rendered (e.g. the object the template is a method of). state is an IDOMletState component used to supply arbitrary properties/utilities to child DOMlets during template execution, and to provide access to the current output stream and IWebInteraction. Both of these parameters should be supplied to executed child nodes as-is, unless the current DOMlet wishes to change them.

For example, if a node wishes to add properties to the state for its children, it should create a new IDOMletState with the old state as its parent, then supply the new state to child nodes's renderFor() method.


Table of Contents

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