Rendering templates for multiple distribution channels, such as Slack and Microsoft Teams, need not be an arduous task.
I will show how applying a Domain-Specific Language in Elixir can help avoid in-line complexity and needless duplication.
Hopefully, this approach will help you in your adventure if you should encounter a similar problem.
Enjoy
Michael