Skip to content

Instantly share code, notes, and snippets.

@j-hannes
Last active May 14, 2016 10:57
Show Gist options
  • Save j-hannes/bef573a233c86a6a9334465d9d003459 to your computer and use it in GitHub Desktop.
Save j-hannes/bef573a233c86a6a9334465d9d003459 to your computer and use it in GitHub Desktop.
HTML to include Main.elm
<!doctype html>
<html>
<head>
<title>my first elm app</title>
</head>
<body>
<div id="app"></div>
<script src="app.js"></script>
<script>
var appContainer = document.getElementById('app')
Elm.Main.embed(appContainer)
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment