diff --git a/html/deno.lock b/html/deno.lock new file mode 100644 index 0000000..ad8cece --- /dev/null +++ b/html/deno.lock @@ -0,0 +1,17 @@ +{ + "version": "2", + "remote": { + "https://deno.land/std@0.149.0/_util/assert.ts": "e94f2eb37cebd7f199952e242c77654e43333c1ac4c5c700e929ea3aa5489f74", + "https://deno.land/std@0.149.0/bytes/bytes_list.ts": "aba5e2369e77d426b10af1de0dcc4531acecec27f9b9056f4f7bfbf8ac147ab4", + "https://deno.land/std@0.149.0/bytes/equals.ts": "3c3558c3ae85526f84510aa2b48ab2ad7bdd899e2e0f5b7a8ffc85acb3a6043a", + "https://deno.land/std@0.149.0/bytes/mod.ts": "763f97d33051cc3f28af1a688dfe2830841192a9fea0cbaa55f927b49d49d0bf", + "https://deno.land/std@0.149.0/fmt/colors.ts": "6f9340b7fb8cc25a993a99e5efc56fe81bb5af284ff412129dd06df06f53c0b4", + "https://deno.land/std@0.149.0/io/buffer.ts": "bd0c4bf53db4b4be916ca5963e454bddfd3fcd45039041ea161dbf826817822b", + "https://deno.land/std@0.149.0/streams/conversion.ts": "fc3db02026183da795fa32ac7549868e9f19c75ba029d4b4c3739af62b48517a", + "https://deno.land/std@0.149.0/testing/_diff.ts": "029a00560b0d534bc0046f1bce4bd36b3b41ada3f2a3178c85686eb2ff5f1413", + "https://deno.land/std@0.149.0/testing/_format.ts": "0d8dc79eab15b67cdc532826213bbe05bccfd276ca473a50a3fc7bbfb7260642", + "https://deno.land/std@0.149.0/testing/asserts.ts": "0ee58a557ac764e762c62bb21f00e7d897e3919e71be38b2d574fb441d721005", + "https://deno.land/x/copy_paste@v1.1.3/deps.ts": "89bfebe10979530b38b3be2ace3b24a7b83dbecb2a6cca7cd7b05b9a86fb1e61", + "https://deno.land/x/copy_paste@v1.1.3/mod.ts": "3b82d6c620749acb86398bbec1f2c1f472cc39921c22ca7d7a98ab682b170f20" + } +} diff --git a/html/hot_people_who_eat_croissants_are_dangerous.tsx b/html/hot_people_who_eat_croissants_are_dangerous.tsx index 67ea0a2..3c855a2 100644 --- a/html/hot_people_who_eat_croissants_are_dangerous.tsx +++ b/html/hot_people_who_eat_croissants_are_dangerous.tsx @@ -54,7 +54,7 @@ function weird_slices(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); }