From 59fdec521dc36dadc682f13bfb44d563eda997c1 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Sat, 23 Apr 2011 11:12:16 -0400 Subject: [PATCH] creating an extension now responds to the -x parameter for setting syntax --- autotest/discover.rb | 1 + frameworks/compass/templates/extension/manifest.rb | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/autotest/discover.rb b/autotest/discover.rb index d02f3b31..ee7f82c5 100644 --- a/autotest/discover.rb +++ b/autotest/discover.rb @@ -2,3 +2,4 @@ Autotest.add_discovery { 'rspec2' } + diff --git a/frameworks/compass/templates/extension/manifest.rb b/frameworks/compass/templates/extension/manifest.rb index 4a6588da..96fc235c 100644 --- a/frameworks/compass/templates/extension/manifest.rb +++ b/frameworks/compass/templates/extension/manifest.rb @@ -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: