Changeset 3064:6cf838419a34 in livinglogic.python.xist
- Timestamp:
- 12/19/07 16:54:39 (12 years ago)
- Author:
- Walter Doerwald <walter@…>
- Branch:
- default
- Message:
-
Update NEWS entries.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
r3063
|
r3064
|
|
36 | 36 | </item> |
37 | 37 | |
| 38 | <item> |
| 39 | <par>Constructing trees can now be done with <lit>with</lit> blocks. Code looks |
| 40 | like this:</par> |
| 41 | <prog> |
| 42 | with xsc.Frag() as node: |
| 43 | +xml.XML() |
| 44 | +html.DocTypeXHTML10transitional() |
| 45 | with html.html(): |
| 46 | with html.head(): |
| 47 | +meta.contenttype() |
| 48 | +html.title("Example page") |
| 49 | with html.body(): |
| 50 | +html.h1("Welcome to the example page") |
| 51 | with html.p(): |
| 52 | +xsc.Text("This example page has a link to the ") |
| 53 | +html.a("Python home page", href="http://www.python.org/") |
| 54 | +xsc.Text(".") |
| 55 | |
| 56 | print node.conv().bytes(encoding="us-ascii") |
| 57 | </prog> |
| 58 | <par>Also the function <function>xsc.append</function> has been renamed to |
| 59 | <function>add</function> and supports <lit>with</lit> blocks now instead of |
| 60 | <link href="http://codespeak.net/svn/user/hpk/talks/xpython-talk.txt">XPython</link>.</par> |
| 61 | </item> |
| 62 | |
38 | 63 | <item>The <lit>media</lit> attribute of <class>html.link</class> and |
39 | 64 | <class>html.style</class> now has a method <method>hasmedia</method>.</item> |
… |
… |
|
49 | 74 | <item><class>ll.xist.ns.xml.XML10</class> is gone now. Use |
50 | 75 | <class>ll.xist.ns.xml.XML</class> instead.</item> |
| 76 | |
| 77 | <item><function>xsc.tonode</function> now will raise an exception when it |
| 78 | can't handle an argument instead of issuing a warning.</item> |
51 | 79 | |
52 | 80 | <item>A class attribute <lit>empty</lit> inside element classes will now no |