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
| # Blank Metro Template, but in CoffeeScript | |
| # Just a dumb rewrite of the default.js in | |
| # http://msdn.microsoft.com/en-us/library/windows/apps/hh986964.aspx | |
| buttonClickHandler = (eventInfo) -> | |
| userName = document.getElementById("nameInput").value | |
| greetingString = "Hello, #{userName}!"; # oh yeah, CS does string interpolation | |
| document.getElementById("greetingOutput").innerText = greetingString | |
| app = WinJS.Application |
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
| # No weirdness | |
| .sub 'main' :main | |
| .local string name | |
| .local string greeting | |
| .local pmc stdin | |
| .local string prompt | |
| prompt = "Please enter your name: " | |
| print prompt | |
| stdin = getstdin |
NewerOlder