The Lightweight Static Content framework
Ruby
Permalink
Failed to load latest commit information.
bin Load default compass config (currently not complete) May 29, 2010
lib Fix gemspec, stylesheet helper should generate link for scss templates Nov 15, 2010
spec Fix gemspec, stylesheet helper should generate link for scss templates Nov 15, 2010
website Docs, split up helpers specs, allow preview server to exit on ctrl+c Sep 16, 2010
.gitignore
LICENSE
README.markdown Update readme Apr 20, 2010
Rakefile Fix gemspec, stylesheet helper should generate link for scss templates Nov 15, 2010
VERSION.yml Fix compass integration defaults, fix tests, prep for version 0.11.0 … Nov 15, 2010
staticmatic.gemspec Fix gemspec, stylesheet helper should generate link for scss templates Nov 15, 2010

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/
    config/
      site.rb
    helpers/
    layouts/
      default.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 default.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'