2014-01-15 22 views
1

我在当前的Middleman模板上添加了Twitter bootstrap-sass。在Middleman模板上添加Bootstrap-sass

https://github.com/twbs/bootstrap-sass

所有的CSS和东西,不同的是添加JavaScript的引导工作良好。

我说我layout.haml文件

= require bootstrap 

这个代码,然后显示我这个错误,

NameError at/
undefined local variable or method `bootstrap' for #<Middleman::Application:0x25001556> 
Ruby d:/Ruby193/lib/ruby/gems/1.9.1/gems/middleman-core-3.2.1/lib/middleman-core/configuration.rb: in method_missing, line 78 
Web  GET localhost/ 

回答

0

也许你遇到的问题是,你不包装在= require bootstrap萨姆在哈姆。

%style 
    :sass 
    = require bootstrap