Chapter 3Controllers, Views, and Templates

By now, you should have a loose grasp of how Phoenix applications work. You know that a typical request starts at an endpoint, flows through a router, and then flows into a controller. You should be starting to appreciate that web programming is a functional problem, and that it’s natural to represent it using a functional language.

As we promised, we’re going to abandon our brief Hello, World application. For the rest of the book, we’re going to work in a new project, and we’ll continue developing it through to the end. Before we get started, though, let’s take a deeper look at how controllers work.

Get Programming Phoenix now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.