Empty Razor Generator
A stripped down single file generator powered by Razor. Similiar to other generators available with the exception that is an absolute minimal implmentation. It's easy to tweak and very flexible. Driven in part because I love Razor and I would love to see it on WPF/WP7/Silverlight
Oh, give credit where it's due:
David Ebbo: the one who opened my eyes with a similiar project focused on helper methods for ASP.NET MVC3
Andrew Nurse: for his directions on how to leverage the base Razor engine.
How to get started
Just run the visual studio extension. Add "EmptyRazorGenerator" as a custom action on the file to run Razor against it.
Then create your razor file. Make sure and specify the inherits attribute with you base class having the appropriate methods.
The results are there!
Your base class.
This simplest base class needs three method:
Very quick sample project using the generator