[Seaside] HTML EMail

Julian Fitzell jfitzell at gmail.com
Wed Jul 15 04:41:55 UTC 2009


At first glance, it doesn't sound like you need a Component or a
Presenter at all. You just want to use a Canvas to generate some HTML
and you can do that from any object you want. By convention, you'd do
this by implementing an object with a #renderOn: method but even
that's not strictly necessary. In 2.9 you could subclass WAPainter.

An exception to the above would be if you need to embed other
Presenters within your rendering.

Also, if you haven't found it already, you might want to look at
Builder (you create one by calling the class-side #builder method on a
Canvas). This should make getting a string of the HTML easy.

Julian

On Tue, Jul 14, 2009 at 9:22 AM, Louis
LaBrunda<Lou at keystone-software.com> wrote:
> Hi All,
>
> I am working on a Seaside server that as part of its function has to send
> EMail with HTML content.  I have subclassed WAComponent to make an object
> that defines the HTML and used WARenderCanvas to render it.  I am wondering
> if I should have subclassed WAPresenter instead of WAComponent.  I'm not
> sure it matters much but would be interested in any comments.
>
> Lou
> -----------------------------------------------------------
> Louis LaBrunda
> Keystone Software Corp.
> SkypeMe callto://PhotonDemon
> mailto:Lou at Keystone-Software.com http://www.Keystone-Software.com
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list