After trying your scenario, I found that there seems to be a problem with staticmatic 0.9.4, haml 2.0.0, and using partials. Try this:
$ sudo gem uninstall staticmatic
$ sudo gem install -v0.9.3 staticmatic
$ sudo gem install -v1.8.2 haml
$ sudo gem uninstall -v2.0.0 haml
This will leave you with staticmatic 0.9.3 and haml 1.8.2, which should allow your scenario to work:
some_page.haml:
= partial("mypartial", :locals => { :title => "My Title" })
mypartial.haml:
%h1= title
I haven't yet investigated why the conflict between staticmatic 0.9.4 and haml 2.0.0 exists, even though staticmatic 0.9.4 is dependent on haml >=
2.0.0.
-Ryan