I'm only 10 minutes in to my adventure with staticmatic (and to be
honest, HAML and SASS).
I'm getting mongrel errors when I try to preview and when I try to
build I see this:
->staticmatic build test_site
created test_site/site/stylesheets/application.css
/opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:135:in `generate_html': undefined method
`line_offset' for #<Haml::SyntaxError:0x1551ef4> (NoMethodError)
from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:151:in `generate_html_with_layout'
from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:259:in `build_html'
from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:256:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:256:in `build_html'
from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:61:in `build'
from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:53:in `send'
from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:53:in `run'
from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/
staticmatic:23
from /opt/local/bin/staticmatic:19:in `load'
from /opt/local/bin/staticmatic:19
then the erro similar will occur
.in `generate_html': undefined method `line_offset' for
#<Haml::SyntaxError:0xb7a36558> (NoMethodError)
if i change it to
.container hello
.span-24 body
then it is ok again. notice I removed the space or tab in front of the
second line.(I tried space and tab both) so it look like it will not
recongnize it .
I tried netbeans and komodo editor, for fear it's the problem of
identation? but all seems similar
the odd name like ".container" and "span-24" comes from blueprintcss
framwork. I found it extremely cool to write web page if combine with
haml and staticmatic.
> if add a line:
> .container hello
> .span-24 body
> then the erro similar will occur
> .in `generate_html': undefined method `line_offset' for
> #<Haml::SyntaxError:0xb7a36558> (NoMethodError)
> if i change it to
> .container hello
> .span-24 body
> then it is ok again. notice I removed the space or tab in front of the
> second line.(I tried space and tab both) so it look like it will not
> recongnize it .
> I tried netbeans and komodo editor, for fear it's the problem of
> identation? but all seems similar
1,sudo gem install gem just update haml to 2.0.2 same problem
gem list as :
sudo gem install staticmatic
password:
Updating metadata for 32 gems from http://gems.rubyforge.org/ ................................
complete
Successfully installed haml-2.0.2
Successfully installed staticmatic-0.9.4
gems installed
haml still wont' work if more than 2 lines and the second has some
space ot tab.
2,git clone git://github.com/stevebartholomew/staticmatic.git
then make a Rakefile.rb in the root dir,then rake preview,