From cb9672bd9ec1cdfa01fa5c5ffedd5979cdf07f73 Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Mon, 27 Jul 2009 00:14:29 -0700 Subject: [PATCH] An extension template for helping to generate a compass extension: compass -p extension my_ext_name This will provide the basic structure for creating a basic compass plugin. --- frameworks/compass/templates/extension/manifest.rb | 6 ++++++ .../compass/templates/extension/stylesheets/main.sass | 1 + .../templates/extension/templates/project/manifest.rb | 2 ++ .../templates/extension/templates/project/screen.sass | 2 ++ 4 files changed, 11 insertions(+) create mode 100644 frameworks/compass/templates/extension/stylesheets/main.sass create mode 100644 frameworks/compass/templates/extension/templates/project/manifest.rb create mode 100644 frameworks/compass/templates/extension/templates/project/screen.sass diff --git a/frameworks/compass/templates/extension/manifest.rb b/frameworks/compass/templates/extension/manifest.rb index e69de29b..577f7b77 100644 --- a/frameworks/compass/templates/extension/manifest.rb +++ b/frameworks/compass/templates/extension/manifest.rb @@ -0,0 +1,6 @@ +file 'stylesheets/main.sass', :to => "stylesheets/_#{File.basename(options[:project_name])}.sass" +file 'templates/project/manifest.rb' +file 'templates/project/screen.sass' + +no_configuration_file! +skip_compilation! \ No newline at end of file diff --git a/frameworks/compass/templates/extension/stylesheets/main.sass b/frameworks/compass/templates/extension/stylesheets/main.sass new file mode 100644 index 00000000..bcccf41f --- /dev/null +++ b/frameworks/compass/templates/extension/stylesheets/main.sass @@ -0,0 +1 @@ +// This is your framework's main stylesheet. Use it to import all default modules. diff --git a/frameworks/compass/templates/extension/templates/project/manifest.rb b/frameworks/compass/templates/extension/templates/project/manifest.rb new file mode 100644 index 00000000..61591194 --- /dev/null +++ b/frameworks/compass/templates/extension/templates/project/manifest.rb @@ -0,0 +1,2 @@ +# Make sure you list all the project template files here in the manifest. +stylesheet 'screen.sass', :media => 'screen, projection' diff --git a/frameworks/compass/templates/extension/templates/project/screen.sass b/frameworks/compass/templates/extension/templates/project/screen.sass new file mode 100644 index 00000000..4558d133 --- /dev/null +++ b/frameworks/compass/templates/extension/templates/project/screen.sass @@ -0,0 +1,2 @@ +// This is where you put the contents of the main stylesheet for the user's project. +// It should import your sass stylesheets and demonstrate how to use them. \ No newline at end of file