2012-08-17 14:38:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
To compile this example yourself use:
|
|
|
|
|
2012-08-21 13:24:30 +00:00
|
|
|
elm --import-js="FrameRateHelp.js" Pong.elm
|
2012-08-17 14:38:41 +00:00
|
|
|
|
|
|
|
This compiles the Elm file and includes the necessary JavaScript code.
|
2012-08-21 13:24:30 +00:00
|
|
|
It produces a self-contained HTML file called Pong.html.
|
2012-08-17 14:38:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
Note: Not all browsers like reading the elm-runtime-x.y.z.js file from
|
|
|
|
an absolute path, so you may have to specify a relative path with
|
2012-08-21 13:24:30 +00:00
|
|
|
the --runtime flag (e.g. adding the following to your compile command:
|
|
|
|
`--runtime="../../../elm/elm-runtime-0.3.6.js"`).
|