Experimental browser for the Atmosphere
```ts import { tagSlots, slot, interpolate } from "typed-template-slots"; type T10s = typeof en; const en = { greeting: tagSlots`Hello ${slot("name")}!`, }; const es = /*...*/ satisfies T10s; console.log(interpolate(en.greeting, { name: "world" })); // "Hello world!" ```
Apr 13, 2025, 1:18 PM
{ "uri": "at://did:plc:gffw3vtq4dvorapq5qs7og4x/app.bsky.feed.post/3lmp55iufis2z", "cid": "bafyreifbsrsu5i6gvre7tyzhyapslx7awgknubyspvthgcshqmxclvw3ha", "value": { "text": "```ts\nimport { tagSlots, slot, interpolate } from \"typed-template-slots\";\n \ntype T10s = typeof en;\nconst en = {\n greeting: tagSlots`Hello ${slot(\"name\")}!`,\n};\n\nconst es = /*...*/ satisfies T10s;\n\nconsole.log(interpolate(en.greeting, { name: \"world\" }));\n// \"Hello world!\"\n```", "$type": "app.bsky.feed.post", "langs": [ "en" ], "reply": { "root": { "cid": "bafyreibm657dn36lfrwzg6aftv5p7xegx4mzbzfzwu77ng7nrgdbmrst4u", "uri": "at://did:plc:gffw3vtq4dvorapq5qs7og4x/app.bsky.feed.post/3lmp55itpzc2z" }, "parent": { "cid": "bafyreibm657dn36lfrwzg6aftv5p7xegx4mzbzfzwu77ng7nrgdbmrst4u", "uri": "at://did:plc:gffw3vtq4dvorapq5qs7og4x/app.bsky.feed.post/3lmp55itpzc2z" } }, "createdAt": "2025-04-13T13:18:53.570Z" } }