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

Introduce assign/2 to set many assigns #600

Merged
merged 1 commit into from
May 14, 2021
Merged

Conversation

germsvel
Copy link
Collaborator

Inspired by #563

What changed?

We introduce Bamboo.Template.assign/2 to sets many assigns for an email. It accepts a map or a keyword list as an argument.

We also take inspiration from Phoenix.LiveView.assign/2

What changed?
============

We introduce `Bamboo.Template.assign/2` to sets many assigns for an
email. It accepts a map or a keyword list as an argument.

We take inspiration from [Phoenix.LiveView.assign/2][assign/2]

[assign/2]: https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html#assign/2
Copy link
Contributor

@brian-penguin brian-penguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat!

@germsvel germsvel merged commit b82a1ec into master May 14, 2021
@germsvel germsvel deleted the assign-many-via-assign-2 branch May 14, 2021 19:34
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.

2 participants