Sha256: 01eb3d9df146716aade7af060feade565be5508b38c0fb331ee2cfc15a7721d6

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + '../../lib')

require 'csses'
class CssesGenerator < Rails::Generator::Base
  attr_reader :css
  
  def initialize(*args)
    super
    files_to_scan = Dir.glob('app/views/**/*.erb') + Dir.glob('app/helpers/*.rb')
    @css = CSSes.new(files_to_scan)
  end
  
  def manifest
    record do |m|
      m.directory "public/stylesheets"
      m.template 'application.css.erb', 'public/stylesheets/application.css'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
csses-1.0.0 rails_generators/csses/csses_generator.rb