Sha256: 93d8b280f31c789e0a5f175aee99db8d376f0d84188987e7a99513175c73a127

Contents?: true

Size: 785 Bytes

Versions: 9

Compression:

Stored size: 785 Bytes

Contents

require 'json'
require 'forwardable'
require 'mime/types'
require 'logger'
require 'pp'

coffee_type = MIME::Type.new('text/coffeescript') do |t|
  t.encoding = '8bit'
  t.extensions = %w{coffee}
end

sass_type = MIME::Type.new('text/sass') do |t|
  t.encoding = '8bit'
  t.extensions = %w{sass scss}
end

MIME::Types.add coffee_type, sass_type

module Assette
  extend self
  CONFIG_WRAPPER = 'ASSETTE CONFIG'
  VERSION = File.open(File.expand_path(File.dirname(__FILE__)+'/../VERSION')).read.freeze
  
  def logger
    @logger ||= Logger.new('/dev/null')
  end
  
  def logger=(l)
    @logger = l
  end
end

%w{config reader readers post_processor post_processors
  compiled_file file template_set template view_helper}.each do |f|
  require File.dirname(__FILE__)+'/assette/'+f
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
assette-0.1.1 lib/assette.rb
assette-0.1.0 lib/assette.rb
assette-0.0.13 lib/assette.rb
assette-0.0.12 lib/assette.rb
assette-0.0.11 lib/assette.rb
assette-0.0.10 lib/assette.rb
assette-0.0.9 lib/assette.rb
assette-0.0.8 lib/assette.rb
assette-0.0.7 lib/assette.rb