(arr: T[]): T[][] {
const MultiWheel: Component = ({ items }, _) => (
{...weird_slices(items).map(items => (
-
+
))}
diff --git a/html/html.ts b/html/html.ts
index a93c129..533fc8b 100644
--- a/html/html.ts
+++ b/html/html.ts
@@ -1,3 +1,5 @@
+import { writeText } from "https://deno.land/x/copy_paste@v1.1.3/mod.ts";
+
export type Prop = string | number | boolean;
export type Attributes = Record;
export type Html = string | NonText;
@@ -154,5 +156,8 @@ export function render(elem: Html, mini?: "mini"): string {
export function debug_render(elem: Html) {
console.log(elem);
console.log(render(elem));
- console.log(render(elem, "mini"));
+ const mini_render = render(elem, "mini");
+ console.log(mini_render);
+
+ writeText(mini_render);
}