From 2c8ee29d83275cae030d65fdf3aa198d45b06ed5 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 29 Nov 2025 11:22:06 -0800 Subject: [PATCH] format --- README.md | 52 +++++++++++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 90b510a..3e7c42a 100644 --- a/README.md +++ b/README.md @@ -55,22 +55,23 @@ The `req` JSX prop will be given the `Hono` request: If `_layout.tsx` exists, your pages will automatically be wrapped in it: - export default ({ children, title }: any) => - - - {title ?? 'hype'} - - +```tsx +export default ({ children, title }: any) => ( + + + {title ?? "hype"} + + - - - - -
- {children} -
- - + + + + +
{children}
+ + +) +``` (Files starting with `_` don't get served directly.) @@ -78,18 +79,24 @@ If `_layout.tsx` exists, your pages will automatically be wrapped in it: CSS can be accessed via `/css/main.css`: - +```html + +``` ### js JS can be accessed (and transpiled) via `/js/main.ts` or `/shared/utils.ts`: - +```html + +``` import your modules relatively, for example in `main.ts`: - import { initAbout } from './about' - import utils from './shared/utils' +```typescript +import { initAbout } from "./about" +import utils from "./shared/utils" +``` ### pub @@ -152,5 +159,8 @@ export default app.defaults 4. Enter dev mode - bun install - bun test +```sh +bun install +bun test +`` +```