foo = xml.body[ xml.table(id="outer", width="100%", height="100%", border="0")[ xml.tr(valign="bottom")[ xml.td(id="output", width="75%", valign="top", model="latestOutput")[ xml.div(pattern="listItem", view="html")[ "Foo" ] ], xml.td(id="room-contents", valign="bottom")[ xml.strong[ "Stuff you have" ], xml.div(model="playerInventory", view="List")[ if_(not model)[ xml.div(_class="item")["Nothing"] ].else_[ for_each(model)[ xml.div( style=["color: red", "color:blue", None] , view="item" , controller="look")[model] ) ] ] ] ] ] ] ] foo()
Foo
Stuff you have
Nothing