Skip to content
Greg Bowler edited this page May 9, 2026 · 4 revisions
  • Explain partials as reusable HTML fragments that can be inserted into page views.
  • Explain the difference between partials and headers/footers.
  • Explain the difference between partials and custom HTML components.

Why use partials?

  • Reuse repeated sections of markup without duplicating them across pages.
  • Keep large page views easier to read and maintain.
  • Compose more complex page layouts from smaller pieces.

Partial file structure

  • Explain where partial files live in the project structure.
  • Explain how a page view references or extends partial content.
  • Explain how partial expansion happens before normal page binding and logic complete the response.

When to use partials

  • Shared page sections that are not global enough to be headers or footers.
  • Repeated layout fragments used across one area of the application.
  • Page skeletons that several views build upon.
  • Explain that partials help shape the document before data is bound into it.
  • Position this page as layout composition, not data binding.

The content within page views can be made dynamic by binding data to the DOM.

Clone this wiki locally