Skip to content

Instantly share code, notes, and snippets.

@miyakogi
Created March 5, 2015 03:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miyakogi/afa1259b0b000312872d to your computer and use it in GitHub Desktop.
Save miyakogi/afa1259b0b000312872d to your computer and use it in GitHub Desktop.
Nim で DOM をさわる
nim js -o:hellonim.js hellonim.nim
<!DOCTYPE html>
<html>
<body>
<div id="nim-container"></div>
<script type="text/javascript" src="hellonim.js"></script>
</body>
</html>
import dom
var container = document.getElementById("nim-container")
container.innerHTML="<h2>Hello Nim!</h2>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment