Is it possible to make force a created HTML page to be written to a
file stream (or a file), instead of serving it through the Seaside web server? Ideally I do not even want to start the server (SeasideServer start). I know there are some settings for writing images to disk, but I also need to write the HTML page. Kind regards Runar _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Well, Seaside isn't really structured for a fully static site - it's mostly about dynamic serving. Why would you want to use Seaside for that instead of a fully static solution?
James Robertson Cincom Smalltalk Product Evangelist http://www.cincomsmalltalk.com/blog/blogView Talk Small and Carry a Big Class Library On Jul 21, 2010, at 4:04 PM, Runar Jordahl wrote: > Is it possible to make force a created HTML page to be written to a > file stream (or a file), instead of serving it through the Seaside web > server? Ideally I do not even want to start the server (SeasideServer > start). > > I know there are some settings for writing images to disk, but I also > need to write the HTML page. > > Kind regards > Runar > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Cached serving of pages that update dynamically once in say 30 min/ day / or week.. and Cached pages are served out by an Apache server..
Dynamic request is routed through to Seaside.. we can use renderContentOn: html | aStream | aStream := aRenderContext document stream. aStream initalizeOn: ('thisFile' asFile writeStream). and then render to the html.. -Skrish On Thu, Jul 22, 2010 at 3:03 AM, James Robertson <[hidden email]> wrote: Well, Seaside isn't really structured for a fully static site - it's mostly about dynamic serving. Why would you want to use Seaside for that instead of a fully static solution? _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by James Robertson-7
It is useful to render the component elsewhere for many reasons, one of
them is to feed it to the PDF converter, for example, Component>>asPDF | xhtml | xhtml := (RenderCanvas builder) fullDocument: true; documentClass: WAHtmlDocument; rootBlock: [:root | root beXhtml10Strict. root style add: (Styles default documentForFile: 'print.css'). root style add: 'svg {-ro-replacedelement: ''com.realobjects.xml.formatters.SVGFormatter'';}']; render: [:html | html render: self]. ^PDFClient default convertXHTML: xhtml. -Boris -- DeepCove Labs Ltd. +1 (604) 689-0322 4th floor, 595 Howe Street Vancouver, British Columbia Canada V6C 2T5 http://tinyurl.com/r7uw4 PacNet Services (Europe) Ltd. +353 (0)61 714-360 Shannon Airport House, SFZ County Clare, Ireland http://tinyurl.com/y952amr CONFIDENTIALITY NOTICE This email is intended only for the persons named in the message header. Unless otherwise indicated, it contains information that is private and confidential. If you have received it in error, please notify the sender and delete the entire message including any attachments. Thank you. -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of James Robertson Sent: 21 July 2010 22:34 To: VW NC Subject: Re: [vwnc] Saving Seaside page to disk, not starting server Well, Seaside isn't really structured for a fully static site - it's mostly about dynamic serving. Why would you want to use Seaside for that instead of a fully static solution? James Robertson Cincom Smalltalk Product Evangelist http://www.cincomsmalltalk.com/blog/blogView Talk Small and Carry a Big Class Library On Jul 21, 2010, at 4:04 PM, Runar Jordahl wrote: > Is it possible to make force a created HTML page to be written to a > file stream (or a file), instead of serving it through the Seaside web > server? Ideally I do not even want to start the server (SeasideServer > start). > > I know there are some settings for writing images to disk, but I also > need to write the HTML page. > > Kind regards > Runar > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |