Just for you, we have another Elixir/OTP course module this week: #16 Comprehensions.
In our web server app, we’re currently generating HTML inside the controller. But it’s time to change that up!
We’ll dynamically generate content by rending template files. Similar to other web frameworks, these new templates will have a mix of both HTML and Elixir code.
To do so, we’ll use comprehensions to “loop” through collections of data and generate HTML in a way that keeps the template code nice and succinct.