Leaf is Vapor's official templating engine and it was created specifically for Vapor. With the template engine, you'll find it easy to pass information from the Swift source code to the Leaf template. The compiled templating source code will then be used to render the final HTML content automatically for you.
There are many different reasons for using a template language. First, you can use templates to help reuse code that's shared across multiple web pages. Next, you can use various tagging syntax to help generate code dynamically and programmatically. Finally, you can embed one template into another and doing so helps you accelerate the development of content.
You will continue the myJournal project from the previous chapter and use the Leaf template engine to enhance the project's features.