Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No html file generated #172

Open
AmjadHD opened this issue Nov 9, 2021 · 6 comments
Open

No html file generated #172

AmjadHD opened this issue Nov 9, 2021 · 6 comments

Comments

@AmjadHD
Copy link

AmjadHD commented Nov 9, 2021

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

@levovix0
Copy link

levovix0 commented Nov 9, 2021

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

@AmjadHD
Copy link
Author

AmjadHD commented Nov 9, 2021

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 ?

@levovix0
Copy link

levovix0 commented Nov 9, 2021

something like

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

@treeform
Copy link
Owner

treeform commented Nov 9, 2021

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 treeform closed this as completed Nov 9, 2021
@jyapayne
Copy link

@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?

@treeform treeform reopened this Jan 29, 2022
@treeform
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants