Sha256: f71a3dce7a29cd98a6ca55605439c2cc9f23267df0a26d58ba248626acd2e58d

Contents?: true

Size: 1.06 KB

Versions: 19

Compression:

Stored size: 1.06 KB

Contents

# Compass CSS framework config file

project_type = :stand_alone
http_path = "/"
sass_dir = "scss"
css_dir = "css"
images_dir = "img"
line_comments = false
preferred_syntax = :scss
output_style = :expanded
relative_assets = true

# ----------------------------------------------------- #
# Nice sprite names
# 

nice_sprite_names = true

if nice_sprite_names
  # Rename sprites to remove the Compass-generated hash and move it up 1 directory
  on_sprite_saved do |filename|
    if File.exists?(filename)
      FileUtils.cp filename, filename.gsub(%r{-s[a-z0-9]{10}\.png$}, '.png').gsub('images/../images/', '')
    end
  end

  # Replace in stylesheets generated references to sprites
  # by their counterparts without the hash uniqueness.
  # Adding timestamp as cache buster.
  on_stylesheet_saved do |filename|
    if File.exists?(filename)
      css = File.read filename
      File.open(filename, 'w+') do |f|
        f << css.gsub(%r{-s[a-z0-9]{10}\.png}, '.png?' + Time.now.strftime("%H%M%s"))
      end
    end
  end
end

# ----------------------------------------------------- #

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
ezy-0.4.2.beta test/config.rb
ezy-0.3.3 test/config.rb
ezy-0.3.2 test/config.rb
ezy-0.4.1.beta test/config.rb
ezy-0.4.0.beta test/config.rb
ezy-0.3.1.beta test/config.rb
ezy-0.3.0.beta test/config.rb
ezy-0.2.9 test/config.rb
ezy-0.2.8 test/config.rb
ezy-0.2.7.alpha test/config.rb
ezy-0.2.6.alpha test/config.rb
ezy-0.2.0 test/config.rb
ezy-0.1.1 test/config.rb
ezy-0.2.0.alpha test/config.rb
ezy-0.1.0 test/config.rb
ezy-0.0.8 test/config.rb
ezy-0.0.7 test/config.rb
ezy-0.0.6 test/config.rb
ezy-0.0.5 test/config.rb