Gem 如何管理 mixin

Shell_Chen · 2012年05月27日 · 1977 次阅读

大家是怎麼樣管理 mixin 的? 我目前使用 compass-rails 讓 rails 使用 compass, 但是如果有我之前寫好的 mixin 要放在哪裡比較好? 讓 scss 可以直接用 @include 我的 mixin? 是放在 vendor 的資料夾? 還是在 Compass 的 config 裡註冊我的 mixin 位置?

官網的例子:

# path from the library file to where you're keeping your compass stuff.
base_directory  = File.join(File.dirname(__FILE__), '..', 'compass')
Compass::Frameworks.register('my_extension', :path => base_directory)
暂无回复。
需要 登录 后方可回复, 如果你还没有账号请 注册新账号