Changeset 3064:6cf838419a34 in livinglogic.python.xist

Show
Ignore:
Timestamp:
12/19/07 16:54:39 (12 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

Update NEWS entries.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • NEWS.xml

    r3063 r3064  
    3636</item> 
    3737 
     38<item> 
     39<par>Constructing trees can now be done with <lit>with</lit> blocks. Code looks 
     40like this:</par> 
     41<prog> 
     42with 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 
     56print 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 
    3863<item>The <lit>media</lit> attribute of <class>html.link</class> and 
    3964<class>html.style</class> now has a method <method>hasmedia</method>.</item> 
     
    4974<item><class>ll.xist.ns.xml.XML10</class> is gone now. Use 
    5075<class>ll.xist.ns.xml.XML</class> instead.</item> 
     76 
     77<item><function>xsc.tonode</function> now will raise an exception when it 
     78can't handle an argument instead of issuing a warning.</item> 
    5179 
    5280<item>A class attribute <lit>empty</lit> inside element classes will now no