A template is a design pattern that details the order a given set of operations are to be executed in; however, a template does not outline the steps themselves. This pattern is useful when behavior is divided in to phases that have some conceptual or side effect dependency that requires them to be executed in a specific order.
In this recipe, we'll see how to use the template function design pattern.