#inject_template_into_file action added to base generator. Entity generator refactored.