Added the ability to templatize a directory