mapbox/carto — Issue #122: @import not working
Author: numenor
Created: 2011-12-03 22:26:05+00:00
State: open

The readme references the "less" project as the ancestor of carto, so I looked there for syntax on importing other files. The "@import ;" syntax unfortunately does not work using carto, but only generates an "Invalid code:" error (and printing the line containing the @import).

I assume this is, because carto assumes the whole stylesheet to be inside the .mml file? Is there any chance that importing of other styles might be supported in future? Or would this rather be an issue for the millstone project (I use it, but it does not seem to handle @import either)?

The reason I need this: I am rendering multiple layers in my maps by multiple calls to mapnik, for later sophisticated compositiing, which cannot be done inside mapnik. These layers use different style files, but should share some common style information, like color variables and font variables.