creating an extension now responds to the -x parameter for setting syntax

This commit is contained in:
Scott Davis 2011-04-23 11:12:16 -04:00
parent 382222b6db
commit 59fdec521d
2 changed files with 9 additions and 2 deletions

View File

@ -2,3 +2,4 @@ Autotest.add_discovery { 'rspec2' }

View File

@ -1,8 +1,14 @@
description "Generate a compass extension."
file 'stylesheets/main.sass', :to => "stylesheets/_#{File.basename(options[:pattern_name]||options[:project_name]||'main')}.sass"
unless options.include?(:preferred_syntax)
options[:preferred_syntax] = 'sass'
end
file 'templates/project/manifest.rb'
file 'templates/project/screen.sass'
file "stylesheets/main.sass", :to => "stylesheets/_#{File.basename(options[:pattern_name]||options[:project_name]||'main')}.#{options[:preferred_syntax]}"
file "templates/project/screen.sass", :to => "templates/project/screen.#{options[:preferred_syntax]}"
help %Q{
To generate a compass extension: