beam-community / bamboo

Testable, composable, and adapter based Elixir email library for devs that love piping.
https://hex.pm/packages/bamboo
MIT License
1.91k stars 345 forks source link

Introduce assign/2 to set many assigns #600

Closed germsvel closed 3 years ago

germsvel commented 3 years ago

Inspired by https://github.com/thoughtbot/bamboo/pull/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