Static HTML Rendering with HttpView2

15 Jan 2011

HttpView2, aka HV2, is another Squeak web framework. HV2 also provides an API for HTML generation. Again, this can be used for producing static web pages:

| req view html |
req := HVMockHttpRequest new.
view := HVMockView new request: req.
html := HVXHTMLCanvas request: req view: view.
html html: [
  html head: [ html title: 'Static HTML Generating using HV2' ].
  html body: [ html p text: 'HttpView2!' ]].
html render. 
Tags: HttpView2