Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
HttpView2
Last updated at 11:39 am UTC on 9 August 2007
No Files. No HTML. Just Smalltalk code!

HttpView2, also known as HV2 is a lightweight web framework, suitable for building RESTful web applications. It is the engine that powers SqueakMap.
HV2 was created by Goran Krampe, and is developed by Goran Krampe e
Giovanni Corriga: 
.

Features

URL-based component activation: each URL identifies a chain of HV2 objects connected in a parent-child relationship. Each object in the chain may dinamically modify the dispatch of HTTP requests and the corresponding responses.
How does this work? Each part of the URL corresponds to a message understood by an HV2 object. These methods implement the dispatch and response logic of your application.
For example, let's say that the url http://localhost/users/ is requested to your application. HV2 will translate this request as a message #users to be sent to the root HV2 object of your application. #users will return an object that can be converted into an HTTP response.
No templates: HV2 uses a builder system to create HTML pages and components. Instead of embedding code in some kind of page template, you send messages such as #bold: or #submitButton to an HTMLBuilder object that will create the corresponding HTML code.
Automatic form handling: no need to name your forms and the fields within them: HV2 will take care of that. The values of a submitted form may be easily retrieved simply by sending a #value message to right objects. This makes form creation as easy as building GUIs!
Small codebase: the whole framework is just a handful of classes.

HV2 and Seaside

HV2 exploits the HTTP request/response model that Seaside abstracts away. This makes HV2 well suited for RESTful, asynchronous web applications that don't require an high degree of interactivity, while Seaside is ideal for complex, interactive web applications.
With a little work, HV2 and Seaside may be integrated, giving you the power of both frameworks.

Known Uses


Download

HttpView2 may be downloaded from SqueakMap

Tutorial

Coming soon...

Development roadmap


Contacts