Skip to content

Instantly share code, notes, and snippets.

@colindensem
Forked from wordyallen/examples.elm
Created October 10, 2016 14:59
Show Gist options
  • Save colindensem/8d65cf362359f34ea642e178b0eafe89 to your computer and use it in GitHub Desktop.
Save colindensem/8d65cf362359f34ea642e178b0eafe89 to your computer and use it in GitHub Desktop.
Hello Elm
module Main exposing (..)
import Html exposing (text)
main =
text "Hello, World!"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div id="main"></div>
<script src="elm.js"></script>
<script>
var node = document.getElementById('main');
var app = Elm.Main.embed(node);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment