Closed edemaine closed 2 years ago
I've wanted to be able to define a single mapping file that can be run in a few different modes via configuration flags. A natural way to support this would be:
svgtiler config1.coffee mapping.coffee *.asc svgtiler config2.coffee mapping.coffee *.asc
But we need some way to pass a message from one mapping (config*.coffee) to the others (mapping.coffee).
config*.coffee
mapping.coffee
Perhaps we can add an implicit share/shared object that's shared among all mapping files, similar to Meteor's coffeescript module.
share
shared
A workaround for now is to use the svgtiler global. But that seems ugly. (though it may be how to implement this)
svgtiler
I've wanted to be able to define a single mapping file that can be run in a few different modes via configuration flags. A natural way to support this would be:
But we need some way to pass a message from one mapping (
config*.coffee
) to the others (mapping.coffee
).Perhaps we can add an implicit
share
/shared
object that's shared among all mapping files, similar to Meteor's coffeescript module.A workaround for now is to use the
svgtiler
global. But that seems ugly. (though it may be how to implement this)