Created
June 2, 2015 19:05
-
-
Save geoffreymcgill/6ca1cad97c3ec35a3dd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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