Drupal 8 Theming - Part 08 - Creating Partials

In this episode of Drupal 8 Theming tutorial series we are going to learn how to make our theme a bit more flexible by creating and calling partials.

Partials are a small bits of code that you can reuse all over your theme. If you watched the Buildng Sites With Middleman Series you already know what partials are.

Common use for them is creating separate files for **header** and **footer**, so when you do some changes on them you don't have to do it on multiple files, but instead you change just one file and those changes would be visible on any template that is calling that partial.

Code used in this tutorial: