Title: Consider Expanding `Browser` Section w/Simple Example · Issue #336 · racketscript/racketscript · GitHub
Open Graph Title: Consider Expanding `Browser` Section w/Simple Example · Issue #336 · racketscript/racketscript
X Title: Consider Expanding `Browser` Section w/Simple Example · Issue #336 · racketscript/racketscript
Description: Here is one such option: # Clone racketscript git clone git@github.com:racketscript/racketscript.git rs cd rs # Build and setup paths make setup export PATH="$PATH:$(git rev-parse --show-toplevel)/racketscript-compiler/bin/" # Add a `scr...
Open Graph Description: Here is one such option: # Clone racketscript git clone git@github.com:racketscript/racketscript.git rs cd rs # Build and setup paths make setup export PATH="$PATH:$(git rev-parse --show-toplevel)/...
X Description: Here is one such option: # Clone racketscript git clone git@github.com:racketscript/racketscript.git rs cd rs # Build and setup paths make setup export PATH="$PATH:$(git rev-parse --show-tople...
Opengraph URL: https://github.com/racketscript/racketscript/issues/336
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consider Expanding `Browser` Section w/Simple Example","articleBody":"Here is one such option:\r\n\r\n```bash\r\n# Clone racketscript\r\ngit clone git@github.com:racketscript/racketscript.git rs\r\ncd rs\r\n\r\n# Build and setup paths\r\nmake setup\r\nexport PATH=\"$PATH:$(git rev-parse --show-toplevel)/racketscript-compiler/bin/\"\r\n\r\n# Add a `scratch/` path to git exclude\r\necho 'scratch/' \u003e\u003e .git/info/exclude\r\nmkdir scratch/\r\n\r\n# Write a 'hello, world!' racket script\r\necho '#lang racket\\n(print \"hello, world!\")' \u003e scratch/module.rkt\r\n\r\n# Ensure the racket script works\r\nracket scratch/module.rkt\r\n\r\n# Compile to racketscript\r\nracks scratch/module.rkt\r\n\r\n# Create a module.html file\r\ncd js-build\r\necho '\u003c!doctype html\u003e\u003chtml\u003e\u003chead\u003e\u003cscript type=\"module\" src=\"modules/module.rkt.js\"\u003e\u003c/script\u003e\u003c/head\u003e\u003c/html\u003e' \u003e module.html\r\n\r\n# Start a simple http server\r\npython3 -m http.server\r\n\r\n# Navigate to http://localhost:8000/module.html\r\n```\r\n\r\n\u003cimg width=\"945\" alt=\"image\" src=\"https://github.com/racketscript/racketscript/assets/1097794/a7183a32-53a8-45e8-8a57-7bf5d0a4cae4\"\u003e\r\n\r\nTODOs:\r\n* cause `console.log` to be invoked\r\n* consider creating a project in a different path\r\n* add an example that demonstrates creating DOM elements\r\n\r\nOther potential TODOs:\r\n* replace `python -m http.server` with an equivalent racket call","author":{"url":"https://github.com/abhillman","@type":"Person","name":"abhillman"},"datePublished":"2023-12-12T03:27:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/336/racketscript/issues/336"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b43043dd-53d2-2d51-c26c-2cc940b7edf0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D746:331E62:69D8D37:8A25632:696D83C8 |
| html-safe-nonce | ef214ed3246cf3b726244c238be544d47aab71885fe2ef2ebfe7c6bb219845e5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzQ2OjMzMUU2Mjo2OUQ4RDM3OjhBMjU2MzI6Njk2RDgzQzgiLCJ2aXNpdG9yX2lkIjoiNzAxNDQ2NDM1MzkyNjQ4MDg0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 388328537673ed5c2dfadde1f03a6545683871cbdf41017a77b97b9731758e59 |
| hovercard-subject-tag | issue:2036903076 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/racketscript/racketscript/336/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e63a0c2f758b9714f6690390e80c839d03c46502d673d922040e17cd0543108f/racketscript/racketscript/issues/336 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e63a0c2f758b9714f6690390e80c839d03c46502d673d922040e17cd0543108f/racketscript/racketscript/issues/336 |
| og:image:alt | Here is one such option: # Clone racketscript git clone git@github.com:racketscript/racketscript.git rs cd rs # Build and setup paths make setup export PATH="$PATH:$(git rev-parse --show-toplevel)/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | abhillman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4922b452d03cd8dbce479d866a11bc25b59ef6ee2da23aa9b0ddefa6bd4d0064 |
| turbo-cache-control | no-preview |
| go-import | github.com/racketscript/racketscript git https://github.com/racketscript/racketscript.git |
| octolytics-dimension-user_id | 42381398 |
| octolytics-dimension-user_login | racketscript |
| octolytics-dimension-repository_id | 52491211 |
| octolytics-dimension-repository_nwo | racketscript/racketscript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 52491211 |
| octolytics-dimension-repository_network_root_nwo | racketscript/racketscript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7e5ae23c70136152637ceee8d6faceb35596ec46 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width