I want to generate a set of static HTML pages for uploading to a site.
Is there a simple way to get a Controller/View to render to a file or
directory, suitable for uploading?
I know I could fire up the server, render the page and save it from a
browser, but that would be tedious after the first dozen or so pages…
TIA.
On Sun, Oct 3, 2010 at 1:37 PM, Fearless F. [email protected]
wrote:
I want to generate a set of static HTML pages for uploading to a site.
I know I could fire up the server, render the page and save it from a
browser, but that would be tedious after the first dozen or so pages…
Or just use wget
in “spider” mode to crawl and retrieve the whole set
with one command 
FWIW,
Hassan S. ------------------------ [email protected]
twitter: @hassan
You could use page caching. That would output files to tmp/cache
Luke
Hassan S. wrote:
On Sun, Oct 3, 2010 at 1:37 PM, Fearless F. [email protected]
wrote:
I want to generate a set of static HTML pages for uploading to a site.
You might want to look into how StaticMatic does this (though I believe
it’s build on Merb, not Rails). If StaticMatic itself is not suitable
for your purposes, its build script may have useful ideas.
Best,
Marnen Laibow-Koser
http://www.marnen.org
[email protected]