Sha256: 4df30d8162cd32b603371e272d86d7c2e86de2748f08e81c1ce746be89c0f028

Contents?: true

Size: 877 Bytes

Versions: 26

Compression:

Stored size: 877 Bytes

Contents

$:.unshift File.join(File.dirname(__FILE__), 'vendor', 'treetop', 'lib'), 
           File.dirname(__FILE__)

require 'cgi'
require 'treetop'
require 'delegate'

LESS_ROOT = File.expand_path(File.dirname(__FILE__))
LESS_PARSER = File.join(LESS_ROOT, 'less', 'engine', 'parser.rb')
LESS_GRAMMAR = File.join(LESS_ROOT, 'less', 'engine', 'grammar')

require 'ext'
require 'less/command'
require 'less/engine'

module Less  
  MixedUnitsError   = Class.new(RuntimeError)
  PathError         = Class.new(RuntimeError)
  VariableNameError = Class.new(NameError)
  MixinNameError    = Class.new(NameError)
  SyntaxError       = Class.new(RuntimeError)
  ImportError       = Class.new(RuntimeError)
  
  $verbose = false

  def self.version
    File.read( File.join( File.dirname(__FILE__), '..', 'VERSION') ).strip
  end
  
  def self.parse less
    Engine.new(less).to_css
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
cloudhead-less-1.1.10 lib/less.rb
cloudhead-less-1.1.11 lib/less.rb
cloudhead-less-1.1.12 lib/less.rb
cloudhead-less-1.1.13 lib/less.rb
cloudhead-less-1.1.3 lib/less.rb
cloudhead-less-1.1.4 lib/less.rb
cloudhead-less-1.1.5 lib/less.rb
cloudhead-less-1.1.6 lib/less.rb
cloudhead-less-1.1.7 lib/less.rb
cloudhead-less-1.1.8 lib/less.rb
cloudhead-less-1.1.9 lib/less.rb
cloudhead-less-1.2.0 lib/less.rb
cloudhead-less-1.2.1 lib/less.rb
cloudhead-less-1.2.2 lib/less.rb
cloudhead-less-1.2.3 lib/less.rb
nirvdrum-less-1.1.4 lib/less.rb
less-1.1.13 lib/less.rb
less-1.1.3 lib/less.rb
less-1.1.5 lib/less.rb
less-1.1.6 lib/less.rb