mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
31 lines
1.0 KiB
HTML
31 lines
1.0 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/structured": "../node_modules/coincident/structured.js",
|
|
"@ungap/with-resolvers": "../node_modules/@ungap/with-resolvers/index.js"
|
|
}
|
|
}
|
|
</script>
|
|
<script type="module" src="../esm/index.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(event)">
|
|
ruby-wasm-wasi version
|
|
</button>
|
|
</body>
|
|
</html>
|