Support for multiple templates and resources.

Currently only supports default filenames.