Since Sass is a CSS3 superset, @import "foo.css" must work as it does in CSS


Nathan,
we're agree that @import "foo.css" should work as it does in CSS, there is 
no contradiction with my proposal. Proposal is just and only about extending 
of @import "foo". This command is SASS-specific, so it wouldn't ruin the 
consistency if you allow one more extension besides .sass and .scss to be 
processed. Again to sum up:

@import "foo.css" will work as it does in CSS
@import "foo" will include contents of foo.(sass|scss|css)


Variables tend to do nearly as good a job of reducing the repetition in 
every case we've seen. 


And here I speak of the feature extensively used via LESS previously, not 
dreamy one.Think of properties as already defined variables. In this way 
you're not pushed to define variable every time. Especially in minor cases 
when something should be repeated no less than twice or thrice. Let's 
compare.

$body_lineheight: 1.5;
$paragraph_color: #999;
body { line-height: $body_lineheight; color: #111; ... }
p    { line-height: $body_lineheight; color: $paragraph_color; ... }
li   { color: $paragraph_color; ... }

body { line-height: 1.5; color: #111; ... }
p    [ line-height: body['line-height']; color: #999; ... ]
li   { color: ['p']; ... }

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

Reply via email to