Articles : Page 1 of 1

  • F# + Razor View Engine = FSRazor

    F# + Razor View Engine = FSRazor

    Feb 11
    07

    Last month InfoQ posted some info from the ASP.NET team about using F# with the new Razor view engine. It seemed like it should be pretty simple, so I thought I'd give it a shot. My (very rough) progress so far is available on GitHub. The solution includes a sample project with a simple F# view using expression blocks: ?<h2>@("FS" + "Razor")</h2><p>@( let even_odd s = match s % 2 with | 0 -> sprintf "%i is even!" s | _ -> sprintf "%i is odd!" s DateTime.Now.Second |> even_odd )</p> A usele...



  • 1