[Seaside] Generating static html pages?
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:
"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.
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?
> seaside mailing list
> seaside at lists.squeakfoundation.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside