You can activate the line_numbers option to have Sass tell you where
each rule in the stylesheet comes from. Check out the Sass reference
for details: http://haml.hamptoncatlin.com/docs/rdoc/classes/Sass.html

On Wed, Jun 3, 2009 at 3:58 AM, Sam Sutton
<[email protected]> wrote:
>
> Just a minor thing, perhaps it's already been raised, but I haven't
> been able to find an answer that covers this.
>
> One of my favourite features of sass it's ability to combine multiple
> stylesheets into one. However, as others would probably agree, this
> can cause some issues with debugging, as it can sometimes be unclear
> in the final compiled stylesheet where a particular rule is being set.
>
> My current solution is to add a visible comment at the top each
> stylesheet so that I can see where they are being output in the main
> stylesheet.
>
> My thinking was that it might be nice if it were possible to set an
> option within sass to do something like that whenever the stylesheet
> is compiled.
>
> So if your main .sass file looks like this:
>
> @import styles/reset.sass
> @import styles/type.sass
> @import styles/colour.sass
> @import styles/layout.sass
>
> When it's compiled into the main stylesheet you get this:
>
> /* reset.sass */
>
> rules {
>    blah: blah
> }
>
> /* type.sass */
>
> rules {
>    blah: blah
> }
>
> /* colour.sass */
>
> rules {
>    blah: blah
> }
>
> /* layout.sass */
>
> rules {
>    blah: blah
> }
>
> Or something similar.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to