added the ability to use erb templates instead of files.