【发布时间】:2014-03-28 02:25:22
【问题描述】:
我无法让 Zurb Foundation 在 Padrino 中正常工作。样式表已编译并加载,但 Foundation 模块不起作用。
http://intense-falls-2845.herokuapp.com/
是一个haml版本的
http://foundation.zurb.com/templates/marketing.html
,但下拉菜单和轨道滑块都不起作用。该项目是使用以下方法生成的:
$ padrino g project PadrinoFoundation -e haml -c compass -s jquery -b
$ padrino g plugin camorra
$ bundle install
对 app/app.rb(创建路线)、app/stylesheets/application.scss(删除对蓝图的指南针引用)和 app/views/application.haml(布局,请阅读下文)进行一些编辑。
这些可以在下面查看:
(路线)https://github.com/bcsantos/PadrinoZurbFoundation/blob/master/app/app.rb
(样式表)https://github.com/bcsantos/PadrinoZurbFoundation/blob/master/app/stylesheets/application.scss
(布局)https://github.com/bcsantos/PadrinoZurbFoundation/blob/master/app/views/application.haml
(整个存储库)https://github.com/bcsantos/PadrinoZurbFoundation
关于布局,我使用了https://github.com/CIRCUITLLC/foundation_templates_haml/blob/master/haml/marketing.html.haml,但对于haml 来说,我可能会犯错误。希望如果有人指出我正确的方向,我可以解决问题。
有什么想法吗?
感谢阅读。
【问题讨论】:
标签: javascript ruby sass zurb-foundation padrino