Allow "emoji" arg to be passed through to some constructors #175
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
tl;dr I found a few places where passing through
emoji
helps make the DSL a bit easier to use.Hey, thanks for this great gem! We have an internal implementation of the Slack BlockKit spec in our app and I'm looking at swapping in this great, open-source library instead. I've spiked out a replacement for our view handler and hooked it up to this BlockKit implementation so we can use it with ActionView. I've also built a prototype of an importer that will convert BlockKit JSON into this gem's DSL that's embedded in our new view layer.
As part of this conversion work, I've been using the somewhat full-featured Builder examples to import and the way I'm auto-generating the code assumes that it can pass
emoji
through this way to make sure the imported JSON and the JSON that's generated by the view match. Are you interested in this change?Additionally, once I've got it deployed, I hope to be able to open source and share some of this if you think it'd be useful! Would you be interested in either the ActionView template handler or the JSON->DSL converter as part of this library? Or if I release it separately, could I get a mention in the README? I'd love to team up, let me know!