Created
July 12, 2016 16:00
-
-
Save Jand42/1c5b7d6f0dde1441185649877e198efd to your computer and use it in GitHub Desktop.
gist load test for try.ws
This file contains hidden or 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 WebSharper; | |
| using WebSharper.JavaScript; | |
| using WebSharper.UI.Next; | |
| using WebSharper.UI.Next.Client; | |
| using static WebSharper.UI.Next.CSharp.Client.Html; | |
| namespace Samples { | |
| [JavaScript] | |
| public class Program | |
| { | |
| [SPAEntryPoint] | |
| public static void Main() | |
| { | |
| var welcomeText = Var.Create("Welcome gist import"); | |
| div( | |
| p(welcomeText), | |
| button( | |
| "Click Me!", | |
| () => { welcomeText.Value = "Hello, world!"; } | |
| ) | |
| ).RunById("main"); | |
| } | |
| } | |
| } |
This file contains hidden or 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
| <html> | |
| <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <div id="main"></div> | |
| <!--[BODY]--> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment