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
http://visualstudiogallery.msdn.microsoft.com/1f6ec6ff-e89b-4c47-8e79-d2d68df894ec/
Andrew Nurse: for his directions on how to leverage the base Razor engine.
http://vibrantcode.com/blog/2010/11/16/hosting-razor-outside-of-aspnet-revised-for-mvc3-rc.html
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:
Sample project
Very quick sample project using the generator
Wpf.Razor.Views.zip
