Commit 17c605ff authored by André Espaze's avatar André Espaze
Browse files

Improve Elm testing and doc

parent 443b17742df8
{- Compilation :
$ elm make --output elm/delete_elm.js elm/Delete.elm
$ sed -e "s/%APP%/Delete/" \
-e "s/%URLPREFIX%/http:\/\/tshistory.test.pythonian.fr/" \
elm/index.html.in > tsdelete/index.html
$ elm make --output tsdelete/elm.js elm/Delete.elm
Running :
......
{- Compilation :
$ elm make --output elm/rename_elm.js elm/Rename.elm
$ sed -e "s/%APP%/Rename/" \
-e "s/%URLPREFIX%/http:\/\/tshistory.test.pythonian.fr/" \
elm/index.html.in > tsrename/index.html
$ elm make --output tsrename/elm.js elm/Rename.elm
Running :
......
......@@ -8,9 +8,12 @@
<body>
<!-- Minimal entry as provided by Elm in Action -->
<div id="app"></div>
<script src="delete_elm.js"></script>
<script src="elm.js"></script>
<script>
var app = Elm.Delete.init({node: document.getElementById("app")});
var app = Elm.%APP%.init({
node: document.getElementById("app"),
flags: "%URLPREFIX%"
});
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel=stylesheet href=https://unpkg.com/tachyons@4.10.0/css/tachyons.min.css/>
</head>
<body>
<!-- Minimal entry as provided by Elm in Action -->
<div id="app"></div>
<script src="rename_elm.js"></script>
<script>
var app = Elm.Rename.init({node: document.getElementById("app")});
</script>
</body>
</html>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment