buybackoff / FunScript.MVC

Use .fsx F# script files instead of JavaScript files in MVC views

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FunScript.MVC

FunScript doesn't compile from HttpHandler while compiles the same .fsx script in a test. No idea why.

In the Tests.fs the test FunScript works works with F# code defined in the same file, but the test Could compile script doesn't work with the same F# code in HelloWorld.fsx.

If it compiles, then it is very easy to use .fsx directly in Razor views with this IHttpHandler, which compiles a .fsx file using FSharp.Compiler.Sevice and then generates JavaScript out of it.

About

Use .fsx F# script files instead of JavaScript files in MVC views

License:The Unlicense


Languages

Language:F# 45.4%Language:C# 26.2%Language:JavaScript 25.1%Language:CSS 1.6%Language:Shell 1.5%Language:ASP 0.3%