[Seaside] Dynamic HTML
Avi Bryant
seaside@lists.squeakfoundation.org
Fri, 28 Jun 2002 00:23:29 -0700 (PDT)
On Thu, 27 Jun 2002, Lukas Renggli wrote:
> IAPage>>printContentsTo: context
> context print: '<html>'.
>
> context print: '<head>'.
> self printHeadTo: context.
> context print: '</head>'.
>
> context print: '<body>'.
> self printBodyTo: context.
> self dynamicBody: context. " This is what I added "
>
> session printToolbar.
> context print: '</body>'.
> context print: '</html>'.
I don't understand how this is any different from having, in the template
of your page
MyPage>>html
^ '... content ...
[dynamicBody]'
and then
MyPage>>addHandlers
(template elementNamed: 'dynamicBody')
escapeHtml: false
Does that work for you?
(In 0.93 it would be
MyPage>>addBindingsTo: template
(template elementNamed: 'dynamicBody')
set: #escapeHtml to: false
)
Avi