Skip to content

Commit

Permalink
creating an extension now responds to the -x parameter for setting sy…
Browse files Browse the repository at this point in the history
…ntax
  • Loading branch information
scottdavis committed Apr 23, 2011
1 parent 382222b commit 59fdec5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions autotest/discover.rb
Expand Up @@ -2,3 +2,4 @@




10 changes: 8 additions & 2 deletions 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:
Expand Down

0 comments on commit 59fdec5

Please sign in to comment.