Skip to content

Commit f1ba764

Browse files
ledsunkateinoigakukun
authored andcommitted
Add an example using the src attribute of the script tag.
1 parent a3c5017 commit f1ba764

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

packages/npm-packages/ruby-wasm-wasi/example/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This is a simple example of how to use the `ruby-wasm-wasi` family packages
88
$ ruby -run -e httpd . -p 8000
99
$ # Open http://localhost:8000/hello.html
1010
$ # Open http://localhost:8000/lucky.html
11+
$ # Open http://localhost:8000/script-src
1112
```
1213

1314
## For Node.js
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
puts "Hello, world!"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<html>
2+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser.script.iife.js"></script>
3+
<script type="text/ruby" src="hello.rb"></script>
4+
</html>

0 commit comments

Comments
 (0)