Transform a directory of templates into HTML.