Changes between Version 3 and Version 4 of MarkupStream
- Timestamp:
- Jul 27, 2006, 10:23:15 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MarkupStream
v3 v4 66 66 }}} 67 67 68 Both methods can be passed a `method` parameter that determines how exactly the events are serialzed to text. This parameter can be either “xml” (the default) or“html”, or a subclass of the `markup.output.Serializer` class:68 Both methods can be passed a `method` parameter that determines how exactly the events are serialzed to text. This parameter can be either “xml” (the default), “xhtml”, “html”, or a subclass of the `markup.output.Serializer` class: 69 69 70 70 {{{ … … 89 89 }}} 90 90 91 Often, streams cannot be reused: in the above example, the sub-stream is based on a generator. Once it has been serialized, it will have been fully consumed, and cannot be rendered again. To work around this, you can wrap such a “read-once”stream in a `list`:91 Often, streams cannot be reused: in the above example, the sub-stream is based on a generator. Once it has been serialized, it will have been fully consumed, and cannot be rendered again. To work around this, you can wrap such a stream in a `list`: 92 92 93 93 {{{