Skip to content

Comments

POC: Render a Slack Divider using a sigil macro#1

Draft
jwright wants to merge 1 commit intomainfrom
poc-implement-slack-divider-component
Draft

POC: Render a Slack Divider using a sigil macro#1
jwright wants to merge 1 commit intomainfrom
poc-implement-slack-divider-component

Conversation

@jwright
Copy link
Member

@jwright jwright commented Dec 10, 2025

This is a proof of concept to be able to render the following Slack BlockKit using a custom sigil and renderer.

The output should look like this:

{
  "type": "home",
  "blocks": [
    {
      "type": "divider"
    }
  ]
}

The input should be defined using a new ChEEX sigil like this:

~C"""
<%= slack do %>
  <.divider />
<% end %>
"""

And it should be able to be rendered within a Slack view like this (??):

~C"""
<.slack.view blocks={[render_block(:divider)]} />
"""

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

Successfully merging this pull request may close these issues.

1 participant