Used output buffering to store the included template file to a variable , rather than instantly displaying.