StaticMatic 0.7.0: Working helpers & dynamic layouts!
August 26th, 2007
I've just released a new version of StaticMatic. This version fixes the issue with the stylesheets helper and introduces a few sort after features:
o You can now assign variables in your templates and they'll be picked up in your layout:
index.haml:
- @page_title = "Hello!"
application.haml:
%title= @page_title
o You can also now specify the layout to be used in your template:
my_page.haml:
- @layout = "special"
This will cause staticmatic to look in src/layouts/special.haml for your layout.
So check it out, and report any bugs to me!
It's out on rubyforge (http://rubyforge.org/frs/?group_id=3712) so will be available as a gem anytime soon:
gem install staticmatic
Enjoy!

Sorry, comments are closed for this article.