Skip to content

Commit

Permalink
Fix script src path for html files to be up to date with readme (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Matveyev authored and Araq committed Sep 9, 2019
1 parent e422087 commit 65e305e
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/carousel/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div id="ROOT" />

<script type="text/javascript" src="nimcache/carousel.js"></script>
<script type="text/javascript" src="carousel.js"></script>

</body>
</html>
2 changes: 1 addition & 1 deletion examples/mediaplayer/playerapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div id="ROOT" />

<script type="text/javascript" src="nimcache/playerapp.js"></script>
<script type="text/javascript" src="playerapp.js"></script>

</body>
</html>
2 changes: 1 addition & 1 deletion examples/scrollapp/scrollapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div id="ROOT" />

<script type="text/javascript" src="nimcache/scrollapp.js"></script>
<script type="text/javascript" src="scrollapp.js"></script>

</body>
</html>
2 changes: 1 addition & 1 deletion examples/todoapp/todoapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<div id="ROOT" />

<script type="text/javascript" src="nimcache/todoapp.js"></script>
<script type="text/javascript" src="todoapp.js"></script>

</body>
</html>
2 changes: 1 addition & 1 deletion experiments/ajaxtest.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@

<div id="ROOT" />

<script type="text/javascript" src="nimcache/ajaxtest.js"></script>
<script type="text/javascript" src="ajaxtest.js"></script>
</html>
2 changes: 1 addition & 1 deletion experiments/echartstest.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
<div id="ROOT" />

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/echarts/4.0.2/echarts-en.js"></script>
<script type="text/javascript" src="nimcache/echartstest.js"></script>
<script type="text/javascript" src="echartstest.js"></script>
</html>
2 changes: 1 addition & 1 deletion experiments/refs/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

<body id="body">
<div id="ROOT"></div>
<script type="text/javascript" src="nimcache/demo.js"></script>
<script type="text/javascript" src="demo.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion experiments/scrollapp.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<div id="ROOT" />

<script type="text/javascript" src="nimcache/scrollapp.js"></script>
<script type="text/javascript" src="scrollapp.js"></script>
<script type="text/javascript">
onload(window.location.pathname.split('/')[1])
</script>
Expand Down
5 changes: 2 additions & 3 deletions karax/tools/karun.nim
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ proc exec(cmd: string) =

proc build(name: string, rest: string, selectedCss: string, run: bool) =
echo("Building...")
createDir("nimcache")
exec("nim js --out:nimcache/" & name & ".js " & rest)
let dest = "nimcache" / name & ".html"
exec("nim js --out:" & name & ".js " & rest)
let dest = name & ".html"
writeFile(dest, html % [name, selectedCss])
if run: openDefaultBrowser(dest)

Expand Down
2 changes: 1 addition & 1 deletion tests/diffDomTests.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<div id="ROOT" />

<script type="text/javascript" src="nimcache/diffDomTests.js"></script>
<script type="text/javascript" src="diffDomTests.js"></script>
<script type="text/javascript">
onload(window.location.pathname.split('/')[1])
</script>
Expand Down
2 changes: 1 addition & 1 deletion tests/domEventTests.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
</head>
<body id="body">
<div id="ROOT"></div>
<script src="nimcache/domEventTests.js" type="text/javascript"></script>
<script src="domEventTests.js" type="text/javascript"></script>
</body>
</html>

0 comments on commit 65e305e

Please sign in to comment.