Skip to content

Commit

Permalink
[Sass] Allow requires to be specified on the command line. This allow…
Browse files Browse the repository at this point in the history
…s users to specify libraries that provide ruby-based sass functions.
  • Loading branch information
chriseppstein committed Jun 2, 2010
1 parent 81f3712 commit 2aed338
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/haml/exec.rb
Expand Up @@ -317,6 +317,9 @@ def set_opts(opts)
opts.on('-I', '--load-path PATH', 'Add a sass import path.') do |path|
@options[:for_engine][:load_paths] << path
end
opts.on('-r', '--require LIB', 'Require a ruby library before processing') do |lib|
require lib
end
opts.on('--cache-location PATH', 'The path to put cached Sass files. Defaults to .sass-cache.') do |loc|
@options[:for_engine][:cache_location] = loc
end
Expand Down

0 comments on commit 2aed338

Please sign in to comment.