Skip to content

Instantly share code, notes, and snippets.

@geoffreymcgill
Created June 2, 2015 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geoffreymcgill/6ca1cad97c3ec35a3dd6 to your computer and use it in GitHub Desktop.
Save geoffreymcgill/6ca1cad97c3ec35a3dd6 to your computer and use it in GitHub Desktop.
using Bridge;
using Bridge.Html5;
namespace Demo
{
public class App
{
[Ready]
public static void Main()
{
// Special comment syntax to emit raw output
/*@
* var notify = function (msg) { alert(msg); };
*/
// Create a snippet of raw JavaScript
Script.Write(@"var msg = ""Hello World"";");
Script.ToDynamic().notify(Script.Get("msg"));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment