[Html-widget] Offer of help / question about H::W status

Michael Gray mjg17 at eng.cam.ac.uk
Tue Aug 1 15:45:04 CEST 2006


On Tue, 1 Aug 2006, Ash Berlin wrote:

> First lets make sure I understand what you're saying properly. Basically 
> you are suggesting the following:
> 
>  * HTML::Widget - similar to it is now, but instead of containing 
> elements/embedded widgets, only contains containers (or block level 
> elements - BLEs)
>  * Fieldset/Container/BLE - this would contain other BLEs or the 
> elements themselves, along with associated constraints.
> 
> So in a lisp like arrangement:
> 
> H::W( BLE( e, e, BLE( e, e, e)), BLE(e, e))

Yes, that's right.

> If so yes, that makes sense - in fact I almost ended up doing something 
> akin to that before, but I found out I didn't need to.
> 
> I think the one caveat is to make sure the old behaviour is maintained. 
> This would basically entail putting all of the functionality you 
> describe in the BLE class which isa HTML::Widget::Element.

Yup, pretty much, perhaps with one or two new convenience methods in 
H::W.  Processing in H::W would need to be refactored, but in a 
backwards-compatible way.

-- 
Michael



More information about the Html-widget mailing list