Introduction
Partials help reuse small pieces of view code. Passing data to partials lets you show different content inside the same partial.
You want to show a user profile card in many pages but with different user info.
You have a list of products and want to render each product using the same layout.
You want to reuse a comment box partial but with different comments each time.
You want to pass a title or message to a shared header partial.
You want to customize a form partial with different objects.