Wrapping Up
In this chapter, you learned how to use templates to generate truly flexible output. In doing so, we separated our presentation logic from our business logic, just as we might when writing a web application.
We looked at the more advanced options we can pass through to ERB to alter its behavior, and how we can use variable bindings to pass data into our templates.
With this, we’ve reached the end of our exploration of text processing. We learned how to acquire text from any source, a host of techniques for processing that text once we’ve gotten it into our Ruby programs, and finally where we can write that transformed text once we’re finished.
With the techniques in this book, you should have built up a formidable data-wrangling arsenal ...
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