rentzsch/mogenerator — pull request #236 by danielctull (2014-08-15 11:50:45+00:00)
Title: Add the ability to generate other files

This enumerates the files in the templates path and if there are files with a motemplate extension that aren't the standard human/machine/swift h/m template files, it will run mogenerator on them. For example if there is a file called `Other.m.motemplate` mogenerator will be run on it for each entity, outputting a file called EntityNameOther.m to the machine generated directory.

@rentzsch We've had the need to create other files, such as protocol files based on the model of our app, so I've added the ability to generate files based on other template files in the template directory that aren't the standard template files. I'm not sure if I've covered all of the issues that might arise from this, as this is a first hack to get it working, so I would like any guidance on this, assuming you think it's a good idea for mogenerator to have.