I used staticmatic a long time ago, so I'm not sure about it's
(current) features...
I need to create static html sites (around 200 000) from a database,
and I would like to use ruby for this - so staticmatic was the first
thing I thought about since I need a template system to easily change
and regenerate everything ... but I remember it needed files
describing the pages...
Is this possible with staticmatic or does anyone have suggestions how
to do this?
On Mon, May 4, 2009 at 9:46 AM, sol <ch.bl...@gmail.com> wrote:
> Hey,
> I used staticmatic a long time ago, so I'm not sure about it's
> (current) features...
> I need to create static html sites (around 200 000) from a database,
> and I would like to use ruby for this - so staticmatic was the first
> thing I thought about since I need a template system to easily change
> and regenerate everything ... but I remember it needed files
> describing the pages...
> Is this possible with staticmatic or does anyone have suggestions how
> to do this?
> Thank you in advance,
> Christoph
-- Sincerely,
Joshaven Potter
"No man making a profession of faith ought to sin, nor one possessed of love
to hate his brother. For He that said, “Thou shalt love the Lord thy God,”
said also, “and thy neighbor as thyself.” Those that profess themselves to
be Christ’s are known not only by what they say, but by what they practice.
“For the tree is known by its fruit.”" -- Ignatius
> On Mon, May 4, 2009 at 9:46 AM, sol <ch.bl...@gmail.com> wrote:
> > Hey,
> > I used staticmatic a long time ago, so I'm not sure about it's
> > (current) features...
> > I need to create static html sites (around 200 000) from a database,
> > and I would like to use ruby for this - so staticmatic was the first
> > thing I thought about since I need a template system to easily change
> > and regenerate everything ... but I remember it needed files
> > describing the pages...
> > Is this possible with staticmatic or does anyone have suggestions how
> > to do this?
> > Thank you in advance,
> > Christoph
> --
> Sincerely,
> Joshaven Potter
> "No man making a profession of faith ought to sin, nor one possessed of love
> to hate his brother. For He that said, “Thou shalt love the Lord thy God,”
> said also, “and thy neighbor as thyself.” Those that profess themselves to
> be Christ’s are known not only by what they say, but by what they practice.
> “For the tree is known by its fruit.”" -- Ignatius
What type of data is in the database? Do you need a static page for each
record?
You said: "I need to create static html sites (around 200 000) from a
database,"
Is that two-hundred thousand sites? Two hundred thousand pages?
If you need 200,000 pages then I cannot imagine the database not needing to
change regularly... why not use something like Ruby On Rails or Even write
your own framework?
Actually, with that much data, I would imagine that you would be best off
with a framework like Django or Rails.
> > On Mon, May 4, 2009 at 9:46 AM, sol <ch.bl...@gmail.com> wrote:
> > > Hey,
> > > I used staticmatic a long time ago, so I'm not sure about it's
> > > (current) features...
> > > I need to create static html sites (around 200 000) from a database,
> > > and I would like to use ruby for this - so staticmatic was the first
> > > thing I thought about since I need a template system to easily change
> > > and regenerate everything ... but I remember it needed files
> > > describing the pages...
> > > Is this possible with staticmatic or does anyone have suggestions how
> > > to do this?
> > > Thank you in advance,
> > > Christoph
> > --
> > Sincerely,
> > Joshaven Potter
> > "No man making a profession of faith ought to sin, nor one possessed of
> love
> > to hate his brother. For He that said, “Thou shalt love the Lord thy
> God,”
> > said also, “and thy neighbor as thyself.” Those that profess themselves
> to
> > be Christ’s are known not only by what they say, but by what they
> practice.
> > “For the tree is known by its fruit.”" -- Ignatius
-- Sincerely,
Joshaven Potter
"No man making a profession of faith ought to sin, nor one possessed of love
to hate his brother. For He that said, “Thou shalt love the Lord thy God,”
said also, “and thy neighbor as thyself.” Those that profess themselves to
be Christ’s are known not only by what they say, but by what they practice.
“For the tree is known by its fruit.”" -- Ignatius
Sorry for not beeing too specific, I'll explain it:
The reason I want static sites that can be re-generated if needed, is
mainly serving speed
and that the database does not change very often (the pages are hosted
on some old internal machine).
I have a lot of similar pages that are constructed from various linked
tables, so basically one large row.
Since this data is pretty much static, we decided we just generate a
bunch of static sites, which are indexed
and searchable by a crawling machine.
To simplify it, I have a table where each row is a site, and I want to
create static pages out of it.
I could of course write a script that just outputs all this into .html
files using erb, but I want to reuse something that gives me
a little more power for linking, templates etc, like staticmatic.
So, I wondered how you would do something like this, for example with
staticmatic (or maybe there is something more suitable for this task,
just wanted to ask)
Thanks for the input,
Christoph
On 4 May, 22:25, Joshaven Potter <yourt...@gmail.com> wrote:
> What type of data is in the database? Do you need a static page for each
> record?
> You said: "I need to create static html sites (around 200 000) from a
> database,"
> Is that two-hundred thousand sites? Two hundred thousand pages?
> If you need 200,000 pages then I cannot imagine the database not needing to
> change regularly... why not use something like Ruby On Rails or Even write
> your own framework?
> Actually, with that much data, I would imagine that you would be best off
> with a framework like Django or Rails.
> On Mon, May 4, 2009 at 10:44 AM, sol <ch.bl...@gmail.com> wrote:
> > Hi,
> > I meant, how would you create the actual pages?
> > Just run a script that outputs rows as files into pages/, or is there
> > a better way?
> > On 4 May, 16:15, Joshaven Potter <yourt...@gmail.com> wrote:
> > > Sure its possible.
> > > You can use a ruby module to connect to your database...
> >http://www.kitebird.com/articles/ruby-mysql.html
> > > On Mon, May 4, 2009 at 9:46 AM, sol <ch.bl...@gmail.com> wrote:
> > > > Hey,
> > > > I used staticmatic a long time ago, so I'm not sure about it's
> > > > (current) features...
> > > > I need to create static html sites (around 200 000) from a database,
> > > > and I would like to use ruby for this - so staticmatic was the first
> > > > thing I thought about since I need a template system to easily change
> > > > and regenerate everything ... but I remember it needed files
> > > > describing the pages...
> > > > Is this possible with staticmatic or does anyone have suggestions how
> > > > to do this?
> > > > Thank you in advance,
> > > > Christoph
> > > --
> > > Sincerely,
> > > Joshaven Potter
> > > "No man making a profession of faith ought to sin, nor one possessed of
> > love
> > > to hate his brother. For He that said, “Thou shalt love the Lord thy
> > God,”
> > > said also, “and thy neighbor as thyself.” Those that profess themselves
> > to
> > > be Christ’s are known not only by what they say, but by what they
> > practice.
> > > “For the tree is known by its fruit.”" -- Ignatius
> --
> Sincerely,
> Joshaven Potter
> "No man making a profession of faith ought to sin, nor one possessed of love
> to hate his brother. For He that said, “Thou shalt love the Lord thy God,”
> said also, “and thy neighbor as thyself.” Those that profess themselves to
> be Christ’s are known not only by what they say, but by what they practice.
> “For the tree is known by its fruit.”" -- Ignatius