The partials system provided by the Handlebars templating engine allows us to reuse smaller bits of template code in varying contexts. Whenever you see a pattern repeated at different points in your template, it's probably a good opportunity to make use of a partial.
In this recipe, we'll make use of the contrib-handlebars (0.8.0)
plugin and its partial template loading functionality to render posts with a similar structure in two different sections of a blog.
In this example, we'll work with the basic project structure we created in the Compiling Handlebars templates recipe of this chapter. Be sure to refer to it if you are not yet familiar with its contents.