scarf
scarf14mo ago

embed typescript playground to web page

some programming language guides like the rust book lets you directly edit and run code in their docs, would it be possible for deno to do this in client-side? i'm planning to create a blog in deno and being able to run code snippets inside posts would be helpful. https://doc.rust-lang.org/book/ch01-02-hello-world.html
1 Reply
ioB
ioB14mo ago
theoretically it's just JS so I don't see why not you'd have to write a shim layer for the Deno.* apis that's a fantastic idea though thinking about how to create a "Learn Deno from Zero" site
More Posts
Using deno-lambda for AWS SAMI'm having issues trying to run deno-lambda (https://github.com/hayd/deno-lambda) locally. (I haven'How to monetize an app?I would like to monetize my apps in a certain way. Mabye limit some features. How to approach monetiimporting scoped NPM packages from other registriesIn node, I can create an `.npmrc` that has rules like this: ``` @custom:registry=https://npm.examplEmbedding, snapshotting, and 7-bit ascii requirementWhat are the differences in how a code module is processed when using `load_side_module()` versus whStandard setup of a monorepo that includes frontend and backend TypeScript code for one appHello friends, I'm new to Deno and have what I feel is a relatively simple use case, but I've struggHow can I import https://github.com/ensdomains/ensjs-v3/tree/main in my denoThis is npm package. I want to use it in my deno project. How can I achive it? I am trying this: `imTesting that advanced types workI have a bunch of pretty advanced types, with generics and inferences all over the place. What woulHow can I reattach a debugger after disconnecting?I want to be able to start deno from a command line, but be able to attach to it from VSCode. I actPass string from TS to dll and return the passed string. (Like echo)Hey I am currently trying to understand the communication between a dll and my TS program. Currentlydeno-deploy limits on file storage?When deploying static files via deployctl, what are the storage limits / costs per GB? Couldn't find