[Seaside] Generating static html pages?
Sebastian Sastre
sebastian at flowingconcept.com
Sat Oct 23 16:24:59 UTC 2010
Of course it is. Seaside has a powerful renderer.
You can use it like this anytime:
pieceOfHtml := WARenderCanvas builder render:[:html|
yourRendereableReportThingy renderOn: html].
I used that in an abstract policy of sanitize like this:
SanitizePolicy>>renderClean
"Iterates the dom but only rendering the allowed elements and attributes."
^ WARenderCanvas builder render:[:html|
self renderCleanOn: html]
You can check the demo of sanitize in squeaksource.com if you want more detailed examples.
sebastian
On Oct 23, 2010, at 2:01 PM, Thierry Thelliez wrote:
> Is it possible to grab the html generated by Seaside to create static pages?
>
> I am building long reports with Seaside. These reports are too slow to
> render live. They can be generated in the background once a day.
>
> Is it possible to dump the result of renderContentOn: in a static page? How?
>
>
> Thanks,
> Thierry
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101023/799bdf25/attachment.htm
More information about the seaside
mailing list