Files
sweet/packages/fresh/tests/fixture_precompile/valid/main.tsx
T
Marvin Hagemeister 815b1940e3 chore: restructure repository into packages/ folder (#3197)
We're having a growing number of packages in this repository. This PR
moves them into a `packages/` directory like it's commonly done in other
projects.
2025-08-06 15:52:45 +02:00

32 lines
717 B
TypeScript

import { App } from "../../../src/app.ts";
const app = new App().get(
"/",
(ctx) =>
ctx.render(
<html>
<head>
<meta charset="utf-8" />
<title>foo</title>
</head>
<body>
<div f-client-nav>
<span f-client-nav={false}>
<p>false</p>
</span>
<a href="/">Home</a>
<img src="/foo.jpg" alt="" />
<picture>
<source src="/bar.jpg" />
</picture>
</div>
</body>
</html>,
),
);
const handler = app.handler();
const res = await handler(new Request("http://localhost/"));
// deno-lint-ignore no-console
console.log(await res.text());