logo

abstract class

web::Widget

sys::Obj
  web::Widget

Widget defines a reuable snippet of HTML.

Slots

body

readonly WebOutStream body

The buffered WebOutStream for the <body> element.

readonly WebOutStream head

The buffered WebOutStream for the <head> element.

make

new make()

render

abstract Void render()

Render the markup for this widget. This method must use the head and body fields for rendering the markup in order to produce a valid HTML file. Never use res.out directly.

req

readonly WebReq req

The WebReq instance for this request.

res

readonly WebRes res

The WebRes instance for this request.

submit

virtual Void submit()

Handle a form submission.