Wrapping Up
We packed a ton into this chapter. Let’s summarize what you’ve done:
-
We created a simple repository. We did so to simplify your plunge into the world of controllers and views.
-
We created actions, which serve as the main point of control for each request.
-
We created views, which exist to render templates.
-
We created templates, which generate HTML for our users.
-
We employed helpers, which are simple Phoenix functions used in templates.
-
We used layouts, which are HTML templates that embed an action’s HTML.
In the next chapter, we’re going to replace our homegrown repository with a database-backed one using Ecto. By the time we’re done, we’ll be reading our users from the database and entering new users with forms.
Don’t stop now! Things ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access