hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

ASP.NET MVC with F#

Last post 07-02-2008, 0:38 by Robert. 1 replies.
Sort Posts: Previous Next
  •  07-01-2008, 13:06 6270

    ASP.NET MVC with F#

        I am planing on doing some ASP.Net work with F# and while there is support both in the two F# books and on tomasp's blog for tradtitional ASP.Net development with F# I was wondering if anyone has anything for working with ASP.Net MVC with F#.

    Right now my plans are to simply build a C# wrapper that calls into the compiled F#.
  •  07-02-2008, 0:38 6272 in reply to 6270

    Re: ASP.NET MVC with F#

    The ASP.NET MVC had not even been conceived when the two F# books were being written!

    I have had a brief look at MVC but not written any code. I your plan sounds reasonable. It would be fairly easy to write both your models and controllers in F# if you wanted to, since these are just classes that need to derive from certain types. But it maybe easier to write them in C# and just call F# libraries, since better templates and examples are available for C#. I think viewers would be harder to write in F# since these take advantage of mixing HTML and C#, I'm guessing something like this should be possible using tomas' CodeDOM but it maybe a little tricky to get going.

    Hope that helps,
    Rob

    Robert Pickering, MVP
    http://strangelights.com
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems