Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

StaticMatic: Ruby-Powered Static Web Site System

By Peter Cooper / September 18, 2007

Staticmatic

StaticMatic is a new alternative to dynamic systems like Ruby on Rails for putting together regular, static Web sites. It uses the superb Haml templating language, and if you're of the Haml mindset, StaticMatic makes putting together static Web sites a snap. It also allows you to quickly "preview" your sites using a stand alone daemon but also to "build" your site to HTML to upload elsewhere.

Comments

  1. Gareth says:

    This had me torn.

    On the one hand, I like the idea of abstracting away HTML from developers, it's just another place where stupid mistakes can be made. On the other hand HAML never really grabbed me as a good solution - I don't know why, it just doesn't feel right the same way Rails does or the way coffee goes with a doughnut.

    Anyway, in the middle of this internal struggle I mistakenly decided to validate their home page (http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fstaticmatic.rubyforge.org). Even though it's a good idea, and we forgive the XHTML Transitional doctype, a web templating language that doesn't produce valid code on its showcase site still has some way to go for me

  2. Christian Romney says:

    HAML doesn't abstract away HTML, it alleviates typing. The HAML constructs map 1-to-1 to HTML, so there is no conceptual mismatch. In fact, you could argue HAML is conceptually no different from Textmate's bundles - both are simple macro expansions.

  3. Joe Grossberg says:

    This looks really cool, with a giant caveat ... how many websites *stay* static?

    Maybe this is best used as a prototyping tool?

  4. Juan Alvarez says:

    Looks promising. Not so long ago I was looking for a tool to build a static site. I really wanted to find one that used Haml but couldn't find one. I found webgen though and I think it's fantastic. It would be interesting to see some of webgen's features in StaticMatic like plugins and html validation at build time or, perhaps even better, to see webgen supporting Haml.

  5. Stephen Bartholomew says:

    @Gareth: Thanks for spotting the validation issues - they're all sorted now. As others have mentioned, Haml doesn't really abstract HTML - it just reduces typing. You can write bad haml just the same as bad HTML. It's also worth noting that Haml is not specific to StaticMatic - it's a library in its own right - one that's far more popular!

    @Joe: Absolutely agreed. We do still manage static HTML when we feel CMS is overkill for a client - which is often the case. We also use it extensively for prototyping before working on an application and as we use Haml in our Rails apps, we can quite often just drop the templates in ready for coding.

    StaticMatic is changing a lot at the moment and we're getting a lot of feedback and great ideas that we'll be putting into new releases.

Other Posts to Enjoy

Twitter Mentions