Code Monkey home page Code Monkey logo

compass-extension-template's People

Contributors

snugug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

compass-extension-template's Issues

[support req] Tips for development/debugging process of a compass extension?

Hi Snugug!

I find myself using more and more SASS and Drupal stuff made by you. You're awesome!

In every Drupal theme i use a number of handy mixins that leverage Susy in a particular way. I decided to create a Compass extension to make reusing my stuff easier.

I've read documentation for compass extensions and the readme of your template. I understand how to create an extension, but i don't understand how to develop/debug it.

It's very inconvenient to recreate and redownload a gem every time i make a change to my code and want to see the result. So there should be a way to code an extension and compile a Compass project that uses the extension being developed, without assembling a gem.

Compass documentation gives a hint:

If you're developing a simple extension, you may find it convenient to place your extension within an existing compass project in the extension folder.

But i don't fully understand that. Should i create an extension folder and put my code (i. e. your template) there? Or should i create a folder named after my extension? Or a combination of those, e. g. extension/foo? How do i import that to a Compass project? What does the following hint really mean?

Never specify an extension in your imports as this can cause issue when the syntax of a file changes.

Dear Snugug, please clarify this. I thing you answer would be worth putting into the template's readme.

Kind regards, lolmaus

Can't get the framework to register with compass

Hello, I have followed your method here to create an extension, however I can't seem to get it to register. When you type compass framework, it doesn't appear in the list.

this is the code for it in my lib/extension_name.rb file:

extension_path = File.expand_path(File.join(File.dirname(FILE), ".."))
Compass::Frameworks.register('base-framework',
:stylesheets_directory => File.join(File.dirname(FILE), '..', 'sass'),
:templates_directory => File.join(File.dirname(FILE), '..', 'templates'),
:path => extension_path)

Am I being silly here?

Compass Extension with specific directories for sass and css output from a template

Hello,

I was wandering if you could help me, I have a compass extension with a project template. This template adds various files to the system including sass files, php files, js files and image files.

I want the sass files to appear within a folder called css rather than /sass that the default config.rb file puts them in when you create a project.

From a template level can you dictate the directories for your assets?:

css_dir = "css"
sass_dir = "css"
images_dir = "img"
javascripts_dir = "js"

Thanks very much for any help

Defining name & version in extension.rb throws an error on gem build

Thanks for providing this template, it clarified a lot of things! I kept having an error when I ran the gem build command:

Invalid gemspec in [extension.gemspec]: /Users/marcelos/Projects/extension/lib/extension.rb:19: class/module name must be CONSTANT

I hadn't missed any instances of the extension name anywhere, and had tried to rebuild from scratch several times. The only thing that fixed this was commenting out lines 19-22 in /lib/extension.rb and then explicitly defining the version and date on lines 8-9 of the extension.gemspec file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.