-
Notifications
You must be signed in to change notification settings - Fork 151
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
Use section name as namespace #273
Conversation
Thanks for this! I am trying to figure out if this is something I want to add to Twine as we try not to add features that will only be used by a very small percentage of users. If we do add it, I think we will want unit tests for sure to help ensure the feature doesn't break in the future. I'm happy to leave this open for a bit to see if anyone else wants to make a case for adding it. |
One other concern: We have to be cognizant of special characters for the various formatters. I think Android doesn't like having periods in string keys and that it might break |
@scelis That's fair! I personally feel as more and more people are moving towards using code generation tools like Swiftgen this would become more popular. I don't know what long term plans you have for the library but maybe we can rethink this feature and think up a more "plugin" style where you could add "hooks" to process and massage data as it is being processed by Twine. That way people could build their own "Twine Plugins" to modify the keys or values before they are exported. Food for thought! If you're interested in having the feature merge into the project I would gladly step up and write the unit test suite for it and maybe make it a bit more robust. Let me know! |
Yes, completely right 👍🏻 |
@scelis Would this feature be a better fit as a plugin / custom formatter that I can add and distribute separately? Does Twine have the ability for plugins / custom formatters? |
Hey! Sorry that this is stagnating and thanks again for your patience and your contributions. I think there are a few possible paths from here:
|
Closing due to inactivity. Please feel free to reopen! |
Quick PR for Feature Request #272 to use section as namespace for the keys