Changes between Version 2 and Version 3 of MarkupBuilder
- Timestamp:
- Jul 9, 2006, 12:56:17 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MarkupBuilder
v2 v3 6 6 7 7 {{{ 8 #!python9 8 >>> from markup.builder import tag 10 9 >>> doc = tag.p('Some text and ', tag.a('a link', href='http://example.org/'), '.') … … 16 15 17 16 {{{ 18 #!python19 17 >>> doc(tag.br) 20 18 <Element "p"> … … 26 24 27 25 {{{ 28 #!python29 26 >>> doc(class_='intro') 30 27 <Element "p"> … … 36 33 37 34 {{{ 38 #!python39 35 >>> stream = doc.generate() 40 36 >>> stream … … 47 43 48 44 {{{ 49 #!python50 45 >>> substream = stream.select('a') 51 46 >>> substream