Using Elixir macros to simplify our views

This episode is part 7 in the Zero to Framework (building Alchemist Camp) series:

Let's write some macros and make a lean view layer! We split our "kitchen sink controller" into reasonable framework abstractions for controllers and views and then take advantage of this work to create an episode controller for Alchemist.Camp.

(Source code available for premium members)

Update: The var!() is unneeded since we don't need to modify name or assigns outside the macro.

Back to index

No Comments