add generators for a template and a view