fidget icon indicating copy to clipboard operation
fidget copied to clipboard

No html file generated

Open AmjadHD opened this issue 3 years ago • 6 comments

When running nim js areas.nim, I only get a js file, no html.

AmjadHD avatar Nov 09 '21 17:11 AmjadHD

It is a normal nim compiler behavior, aren't it?

levovix0 avatar Nov 09 '21 18:11 levovix0

First cd to each folder then run js compile command then open the .html file in a browser

I guess I mistakenly thought it would generate a .html for me. how would a minimal html file that runs this look like ?

AmjadHD avatar Nov 09 '21 18:11 AmjadHD

something like

<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Fidget example</title>
</head>
<body>
  <script src="areas.js"></script>
</body>
</html>

levovix0 avatar Nov 09 '21 18:11 levovix0

That is correct Nim does not generate HTML files. You got to make a minimal one yourself.

Closing this issue, feel free to reopen if you still have questions.

treeform avatar Nov 09 '21 19:11 treeform

@treeform this is an issue with the README. It says:

First cd to each folder then run js compile command then open the .html file in a browser.

So you'd think there would be an html file. Maybe it would be helpful to just add that bit of html above to the doc to make it a bit easier on newcomers?

jyapayne avatar Jan 28 '22 12:01 jyapayne

You right its probably is my issue. If you follow the emscriten process it generates the html file, if you follow the simple nim js it does not. I need to figure out the best way to do this.

treeform avatar Jan 29 '22 00:01 treeform