embedding javascript engine .net
just wondering anyone ever attempted embedding indeed integrating any js engine .net environment. i indeed (after lot pain effort, given it's graceful prehistoric definitely finished) spidermonkey-dotnet project. anyone trust area? engines squirrelfish, v8..
not i'm positive mozilla's spidermonkey (using rails-like miniframework tradition components inside core asp.net application), nonetheless i'd still adore try bit offer options. command-line solutions i'd need, i can't rest anything else clr, i need methods from/to javascript/c# objects.
// c# class
public category a
{
open twine hello(string msg)
{
relapse msg + " whatewer";
}
}
// js snippet
var = new a();
console.log(a.hello('call me')); // i have console.log implemented, don't worry, it's client-side formula :)
just explain - i'm perplexing indeed way the concentration itself server-side javascript. it's used wholly minute tradition user subapplications (can seen arrange dsl). it's many easier (and safer) grant normal programming js c#.
Comments
Post a Comment