[Seaside] WABrush vs. WATagBrush

Johan Brichau johan at inceptive.be
Thu Aug 30 08:58:31 UTC 2018


Hi Sean,

I’m also not the author but I don’t understand why you say there is a ‘parallel hierarchy’.
WABrush is the superclass of a WACompound and a WATagBrush. A WATagBrush always produces a single tag, while a WACompound is a composition of multiple tags. 
In that sense, the structure can be seen as a composite design pattern.

In our app, we have several subclasses of WABrush and WACompound to implement recurring html structures. This makes it possible to simplify our rendering methods for html patterns that occur frequently throughout our app.

Is this an answer to your question?

cheers
Johan

> On 28 Aug 2018, at 14:54, Sean P. DeNigris <sean at clipperadams.com> wrote:
> 
> What is the difference? They seem to be parallel hierarchies describing
> similar things, but with subtle differences e.g. WABrushes DNU #ensureID.
> Thanks!
> 
> 
> 
> -----
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Seaside-General-f86180.html
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list