Module: Toppings::Helper::SassFileHelper
- Included in:
- Generators::SassFileGenerator
- Defined in:
- lib/toppings/helper/sass_file_helper.rb
Instance Method Summary collapse
Instance Method Details
#sassy_file_name(file, options = {}) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/toppings/helper/sass_file_helper.rb', line 3 def sassy_file_name(file, = {}) sass_file = [] sass_file.tap do |f| f << ([:standalone] ? file : "_#{file}") f << ([:dialect] || Toppings.conf.sass.dialect) f << 'erb' if [:type] == :erb end sass_file.join('.') end |