Add code for title and scripts/styles in a template.