Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharing state between mapping files to modify their behavior #77

Closed
edemaine opened this issue Jul 28, 2022 · 0 comments
Closed

Sharing state between mapping files to modify their behavior #77

edemaine opened this issue Jul 28, 2022 · 0 comments

Comments

@edemaine
Copy link
Owner

edemaine commented Jul 28, 2022

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).

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant