Added support for loading template files via the {theme} tag.