Sha256: a72bde2c71fba2ddb0cbda9cde4432c7128ab2b86ae7a19e5823f81ce01aa719

Contents?: true

Size: 430 Bytes

Versions: 4

Compression:

Stored size: 430 Bytes

Contents

class Assette::Reader::Js < Assette::Reader(:js)
  
  def compile
    @file.text
  end
  
  class << self
    
    def error str, path=nil
      if path
        <<-JS
        console.group("Compiling Error in file #{path}");
        console.error(#{str.to_json});
        console.groupEnd();
        JS
      else
        "console.error(#{str.to_json});"
      end
    end
    
    def comment_str
      '// %s'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
assette-0.0.5 lib/assette/readers/js.rb
assette-0.0.4 lib/assette/readers/js.rb
assette-0.0.3 lib/assette/readers/js.rb
assette-0.0.2 lib/assette/readers/js.rb