Elm (programming language): Difference between revisions

Content deleted Content added
Line 77:
, show fullData
]
</source>
* embedding it in a ''div'' element
<source lang="html4strict">
<!DOCTYPE HTML>
<html>
<head><meta charset="UTF-8">
<title>MyModule</title>
<script type="text/javascript" src="/home/gabi64/elm-comp/cabal-dev//share/Elm-0.8.0.3/elm-runtime.js"></script>
<script type="text/javascript" src="MyModule.js"></script>
</head>
<body>
<div id="myId" style="width:100;height:100;">&nbsp;</div>
<script type="text/javascript">Elm.byId('myId',Elm.MyModule)</script>
<noscript></noscript>
</body></html>
</source>
* compile
<source lang="bash">
$ elm --make -s --only-js MyModule.elm
</source>