public
Description: The Lightweight Static Content framework
Homepage: http://www.staticmatic.net
Clone URL: git://github.com/staticmatic/staticmatic.git
name age message
file .gitignore Fri Jan 30 04:23:26 -0800 2009 Fixed promo site [stevebartholomew]
file LICENSE Mon Apr 27 23:41:43 -0700 2009 Added jeweler for gem management, removed cruft [stevebartholomew]
file README.markdown Mon Apr 27 23:41:43 -0700 2009 Added jeweler for gem management, removed cruft [stevebartholomew]
file Rakefile Wed Nov 11 16:48:32 -0800 2009 Add Rack as a dependency. [nex3]
file VERSION.yml Thu Oct 08 01:58:26 -0700 2009 Remove invalid folder [stevebartholomew]
directory bin/ Mon Oct 05 11:41:16 -0700 2009 Update for latest release [stevebartholomew]
directory lib/ Wed Nov 11 16:23:00 -0800 2009 Port the server to Rack. [nex3]
directory spec/ Thu Oct 08 01:58:26 -0700 2009 Remove invalid folder [stevebartholomew]
file staticmatic.gemspec Wed Nov 11 17:01:36 -0800 2009 Regenerate gemspec. [nex3]
README.markdown

StaticMatic

For information on Haml & Sass please see haml.hamptoncatlin.com.

What's it all about?

CMS is overrated. A lot of the time, clients want us to do what we do best - well designed pages with structured, accessible and maintainable markup & styling.

CMSs are often perfect for this, but sometimes they can be restrictive and more cumbersome than just working with good ol' source code. At the same time we want our code to be structured, DRY and flexible.

Enter StaticMatic.

Usage

StaticMatic will set up a basic site structure for you with this command:

staticmatic setup <directory>

After this command you'll have the following files:

<directory>/
  site/
    images/
    stylesheets/
    javascripts/
  src/
    helpers/
    layouts/
      application.haml
    pages/
      index.haml
    stylesheets/
      application.sass

StaticMatic sets you up with a sample layout, stylesheet and page file. Once you've edited the pages and stylesheets, you can generate the static site:

staticmatic build <directory>

All of the pages are parsed and wrapped up in application.haml and put into the site directory.

Templates

StaticMatic adds a few helpers to the core Haml helpers:

= link 'Title', 'url'
= img 'my_image.jpg'