by Paul Kohler
11. October 2008 18:43
I am working on a "generator" for the MVC stuff Microsoft has come out with. It's a rails thing in case you hadn't seen it - basically a file set skeleton generator. Rather that using built in templates, you have a local set of templates (this is important) for an application and you type stuff like this via command line:
> generate Controller Home Index About Join Contact
And a controller is created in the right spot with basic methods etc.
> generate View Home Index
...would give you an Index view in the Home folder under views etc. The ASP.NET implementation "requires" 3 files for a view which is a bit of a pain but hey....
Probably the main thing I really wanted to roll up was a "controller set", i.e. the first command creates the controller, it's methods and all associated views.
It's almost done :-)