Added support for template styles and scripts