Thanks Ryan!
Yes ,I'm using Jquery to do this.Everything seems simple.
But the key is how to use staticmatic, Currently I can only generate
content file from my application,then go to command line to use
staticmatic to compile it .it's not much burden to do this, if we have
only a few site to manage.but I just wondering if I have a 100
websites to manage,this will become a problem.
so ideally I hope it'll be great that if I can use staticmatic as an
standard lib in my applicaion,like this:
#in my own rb application code.
require'staticmatic"
#some code to generate txt(haml) file to staticmatic content folder;
Staticmatic.compile(oneofmysite)
that' it , based on this we can make new site very easy and make it
possible to manage large number of website .
I work by my own to do website, many time I find the defferent between
large companies and personal website administers: we departed on
opposite direction :they using high resource intensive webserver,so we
have to to retreat to static page, they focus on one or few
website ,so we MUST do more small sites .in this way we can still keep
competent with big companies. I guess in the future it's even harder
to survive between this .
consider the search engine has created an very strange and unfair
ecosystem, this might mean a big market in the future,so if you guys
can ,can you add some muti-site manage function to staticmatic, that
also will be cool!
On 6月29日, 上午3时08分, "Ryan Mulligan" <r...@ryantm.com> wrote:
> On Sat, Jun 28, 2008 at 1:59 AM, Harry <blogdri
...@gmail.com> wrote:
> > Hi guys !
> > glad you are working on this.
> > from my point of view.most dynamic sites are just fake.wasting
> > resources.
> I've often thought this myself. It seems that you could make a website
> framework where every page is static, except when a user posts a form or
> does something effectful it recomputes all the static pages that are
> affected by this.
> > so recently I focus on buidling static site , using client
> > side javascript and ajax call to some web service, to make it like
> > dynamic. but the most main part ,the content to the reader ,should all
> > be static.and (or) enven the ajax call to the server is just to get
> > some XML file which is also static. I think in this way we can make
> > totally static site but still has some dynamic site character.
> > erverything that should be "real time "daynamic is computed in
> > advance,that is done at my local machine using tool like staticmatic.
> > I mean ,do you have some tutorial on how to use staticmatic to do some
> > kind of application like this? can staticmatic be used as a class to
> > be included in my own application?
> > thanks and appreciate for your work!
> From what you say it isn't that hard, just use a Javascript library to do
> some XHTML request for a static file. It's no different than doing it for a
> dynamic file. Staticmatic is compatible with any Javascript library. You
> could use Prototype or JQuery or Dojo. or you could just write the
> Javascript yourself.