curvedmark / roole

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

Roole Javascript API error on compilation #127

Closed chrisenytc closed 11 years ago

chrisenytc commented 11 years ago

When compiling this code css using the Roole Javascript API in node.js this error occurs. This is a new bug or a problem that can be solved fast?

.logo {
background: url('img/livia.png');
}

Error: [Error: Missing base option]

What the problem?

curvedmark commented 11 years ago

Relative urls will be transformed in Roole (so they are always relative to the finial CSS file), relative to the path provided by the base option. So you need to provide it.

Maybe I should simply disable url transformations when the base option is missing.

chrisenytc commented 11 years ago

It would be nice disable the base when not using. What do you think?

curvedmark commented 11 years ago

Fixed in master