curvedmark / roole

A language that compiles to CSS
http://roole.org
MIT License
342 stars 21 forks source link

Allow to use variables in @import #102

Closed mishanga closed 11 years ago

mishanga commented 11 years ago
$theme = normal;
@import 'theme_${normal}';

Now it looks like:

@if $theme is normal {
    @import 'theme_normal';
}
curvedmark commented 11 years ago

It's already implemented in master. Forget to mention it in the changelog. Thanks for the report.

BTW, you need to use double-quote string, which supports interpolation.

mishanga commented 11 years ago

Great! Thanks!