Sha256: 15a58f7ae5f4d367766c65aabb0ac32d84b1d899adf9291354b09dba359319ee

Contents?: true

Size: 819 Bytes

Versions: 9

Compression:

Stored size: 819 Bytes

Contents

$:.unshift File.dirname(__FILE__)

require 'cgi'
require 'treetop'
require 'mutter'
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

9 entries across 9 versions & 2 rubygems

Version Path
cloudhead-less-1.2.4 lib/less.rb
cloudhead-less-1.2.5 lib/less.rb
cloudhead-less-1.2.7 lib/less.rb
cloudhead-less-1.2.8 lib/less.rb
less-1.2.13 lib/less.rb
less-1.2.12 lib/less.rb
less-1.2.11 lib/less.rb
less-1.2.10 lib/less.rb
less-1.2.9 lib/less.rb