This is not regarding any issue but rather a suggestion.Is there any plan to expose views as pure cs files - may be designing something on the lines of Fluent Interfaces and internal Domain Specific Languages(may be using delegates and expression trees)
to design a custom view engine e.g....
b.OnClientClick("Some js based ajax call to server side")
So this above snippet will render the button on the page.One of the biggest advantage of this approach is we can cleanly unit test such code.Also such an approach can lead to designing views in a totally object oriented way.
Even better might be to have this style to render js templates (may be using some LINQ to JS library) and make it purely Single Page Application.
Please share your thought(s).
Thanks and Regards,