Added support for template strings (in addition to template files).