Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Sass :css_filename option not being set?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Charles Roper  
View profile   Translate to Translated (View Original)
 More options 1 Nov, 21:33
From: Charles Roper <reac...@charlesroper.co.uk>
Date: Sun, 1 Nov 2009 13:33:09 -0800 (PST)
Local: Sun 1 Nov 2009 21:33
Subject: Sass :css_filename option not being set?
Hey Steve,

Just been having a problem with my Staticmatic project and thought it
was an issue with Compass, but further investigations seem to indicate
it might be something to do with Staticmatic.

Here's the thread on the Compass list:

http://groups.google.com/group/compass-users/browse_thread/thread/b20...

What do you think?

Cheers,
Charles


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Bartholomew  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 13:57
From: Stephen Bartholomew <st...@curve21.com>
Date: Wed, 4 Nov 2009 05:57:45 -0800 (PST)
Local: Wed 4 Nov 2009 13:57
Subject: Re: Sass :css_filename option not being set?
Hey Charles,

StaticMatic doesn't pick up options set in Compass - yet :0)

For the moment, you can set it manually in configuration.rb.

Steve


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Roper  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 16:07
From: Charles Roper <reac...@charlesroper.co.uk>
Date: Wed, 4 Nov 2009 16:07:35 +0000
Local: Wed 4 Nov 2009 16:07
Subject: Re: Sass :css_filename option not being set?
Hey Steve,

2009/11/4 Stephen Bartholomew <st...@curve21.com>:

> StaticMatic doesn't pick up options set in Compass - yet :0)

> For the moment, you can set it manually in configuration.rb.

As I understand it, although I could be totally wrong here, the
:css_filename option should be set to refer to the output CSS file for
a given sass file. So in the case of Staticmatic, a sass file like
this:

ROOT/src/stylesheets/screen.sass

The :css_filename would be set to something like this:

ROOT/site/stylesheets/screen.css

The value of :css_filename depends on the input sass file and so I'm
not sure how I could go about setting this option globally in
configuration.rb.

Does that make sense? Am I way off base?

Cheers,
Charles


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Charles Roper  
View profile   Translate to Translated (View Original)
 More options 4 Nov, 16:26
From: Charles Roper <reac...@charlesroper.co.uk>
Date: Wed, 4 Nov 2009 16:26:09 +0000
Local: Wed 4 Nov 2009 16:26
Subject: Re: Sass :css_filename option not being set?
Just a Quick follow-up, here's the method in Compass that compiles a
sass file; note how the css_filename get passed in and assigned to the
:css_filename option:

    # Compile one Sass file
    def compile(sass_filename, css_filename, options)
      if options[:force] ||
Sass::Plugin.exact_stylesheet_needs_update?(css_filename,
sass_filename)
        logger.record :compile, basename(sass_filename) unless options[:quiet]
        engine = ::Sass::Engine.new(open(sass_filename).read,
                                    :filename => sass_filename,
                                    :line_comments => options[:line_comments],
                                    :style => options[:style],
                                    :css_filename => css_filename,
                                    :load_paths => options[:load_paths],
                                    :cache_location => options[:cache_location])
        css_content = engine.render
        write_file(css_filename, css_content, options.merge(:force => true))
      else
        logger.record :unchanged, basename(sass_filename) unless options[:quiet]
      end
    end


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google