| CARVIEW |
staticmatic / staticmatic
- Source
- Commits
- Network (17)
- Issues (0)
- Downloads (2)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
-
Branches (1)
- master ✓
- Tags (2)
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
The Lightweight Static Content framework — Read more
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Jan 30 04:23:26 -0800 2009 | Fixed promo site [stevebartholomew] |
| |
LICENSE | Mon Apr 27 23:41:43 -0700 2009 | Added jeweler for gem management, removed cruft [stevebartholomew] |
| |
README.markdown | Mon Apr 27 23:41:43 -0700 2009 | Added jeweler for gem management, removed cruft [stevebartholomew] |
| |
Rakefile | Wed Nov 11 16:48:32 -0800 2009 | Add Rack as a dependency. [nex3] |
| |
VERSION.yml | Wed Dec 30 13:32:36 -0800 2009 | Latest gem release [stevebartholomew] |
| |
bin/ | Mon Oct 05 11:41:16 -0700 2009 | Update for latest release [stevebartholomew] |
| |
lib/ | Thu Jan 14 07:47:59 -0800 2010 | Allow tags to be closed in HTML 4 style [stevebartholomew] |
| |
spec/ | Thu Oct 08 01:58:26 -0700 2009 | Remove invalid folder [stevebartholomew] |
| |
staticmatic.gemspec | Wed Dec 30 13:32:36 -0800 2009 | Latest gem release [stevebartholomew] |
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'
