Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
bin/carto: be careful not to resolve inline stylesheet data
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed May 29, 2013
1 parent ae95aa7 commit 8786bf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/carto
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ if (ext == '.mml') {
}, compileMML);
} else {
data.Stylesheet = data.Stylesheet.map(function(x) {
if (typeof x !== 'string') {
return { id: x, data: x.data }
}
return { id: x, data: fs.readFileSync(path.join(path.dirname(input), x), 'utf8') }
});
compileMML(null,data);
Expand Down

0 comments on commit 8786bf5

Please sign in to comment.