ex_twiml v2.1.0 Release Notes
Release Date: 2016-01-23 // over 8 years ago-
This version comes with two new features:
Verb Option Variables
Verb options can now be a variable. Previously, you to pass in options as a list to each verb, like this:
say "Welcome...", voice: "alice"say "Press 1 to...", voice: "alice"
Now, you can define a shared variable or private method, and share that between verbs:
options = [voice: "alice"] say "Welcome...", options say "Press 1 to...", options
0️⃣ Default Verb Options
⚡️ Verbs can now have default options. For example, if you wanted the "Alice" voice to be the default, you can update your mix configuration in
config/config.exs
like so:config :ex\_twiml, :defaults, say: [voice: "alice"]
Check out the README for more details on that.