Files
pyscript/pyscript.core/test/ruby.html
Andrea Giammarchi c6b5ce7f55 [next] Drop web like events (#1578)
* Use registerJSModule when available (#1573)

* Updated version to publish latest
2023-07-06 17:56:06 +02:00

32 lines
1.1 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>Ruby</title>
<link rel="stylesheet" href="style.css" />
<script type="importmap">
{
"imports": {
"basic-devtools": "../node_modules/basic-devtools/esm/index.js",
"coincident/window": "../node_modules/coincident/window.js",
"@ungap/with-resolvers": "../node_modules/@ungap/with-resolvers/index.js",
"@ungap/structured-clone/json": "../node_modules/@ungap/structured-clone/esm/json.js"
}
}
</script>
<script type="module" src="../core.js"></script>
</head>
<body>
<script type="ruby-wasm-wasi">
def print_version(event)
puts event[:type]
print "ruby #{ RUBY_VERSION }p#{ RUBY_PATCHLEVEL }"
end
</script>
<button ruby-wasm-wasi-click="print_version">
ruby-wasm-wasi version
</button>
</body>
</html>