codeOnVT_ribbonElement
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Ribbon element used by @andreterron/codeOnValTown
ribbonElement({val: { handle: "andre", name: "foo" }})
- define which val to link to;ribbonElement()
- infer the val from the call stack.
Example: @andreterron/openable_element
import { ribbonElement } from "https://esm.town/v/andreterron/codeOnVT_ribbonElement?v=3";
import { html } from "https://esm.town/v/stevekrouse/html?v=5";
export default async (req: Request): Promise<Response> => {
return html(`
<h2>Hello world!</h2>
<style>* { font-family: sans-serif }</style>
${ribbonElement()}
`);
};
Migrated from folder: A_Features/_24_02_15_Open_In_ValTown/codeOnVT_ribbonElement