Re: OT: Looking for a lightweight ruby framework

Rob Park
Sun, 27 Mar 2005 23:41:12 -0000

On Sun, 27 Mar 2005 13:58:27 +0200, Norman Timmler
<norman-QkIQCVqxERM@public.gmane.org> wrote:
> The Problem is, that i cannot switch to another provider, because my
> client wants to stay with it. Also my client doesn''t want a
dynamic
> webpage. That''s fatcs that i can''t change!

If your client wants a static site, why not give him one?

Last time I had a "client" (ok, my aunt) who just wanted a static
site, what I did was to make a bunch of small text files, using m4
macros for common things like when the page was last updated or page
headers and footers. Then I wrote a simple makefile for running the m4
macros to create the final .html file. Then my webserver serves
perfectly static HTML files with no dynamic processing whatsoever.
When the client requests a page be changed, I edit a text file, run
''make'', and then upload only the .html files that have
changed.

Rails would have been massive overkill on such a small project
(project has something like 8 pages, and they rarely change in
content).

> And believe me, i tried.
> To have as little work as possible i would like to use a kind of simple
> framework to have i18n support, partial support and many more things,

m4 can do i18n, insofar as you''re able to use UTF8 text files. m4 can
also do partials, but it calls them "macros" ;)

http://www.gnu.org/software/m4/

If you''re running linux, it''s likely already installed.

--
Urban Artography