Added support for external template files to template plugin.