lib/rack/less.rb in rack-less-0.1.0 vs lib/rack/less.rb in rack-less-1.0.0

- old
+ new

@@ -11,18 +11,30 @@ # require 'rack/less' # Rack::Less.new(app, :compress => true) # # Within a rackup file (or with Rack::Builder): # require 'rack/less' -# use Rack::Less do -# set :root, "." -# set :source, 'app/less' -# set :compress, true -# end +# +# use Rack::Less, +# :source => 'app/less' +# :compress => true +# # run app module Rack::Less - MEDIA_TYPE = "text/css" + MIME_TYPE = "text/css" + + class << self + + # Proxy calls to Base.combinations + def combinations + Rack::Less::Base.combinations + end + def combinations=(value={}) + Rack::Less::Base.combinations = value + end + + end # Create a new Rack::Less middleware component # => the +options+ Hash can be used to specify default configuration values # => a block can given as an alternate method for setting option values (see example above) # => (see Rack::Less::Options for possible key/values)