This commit changes how bundling works, by bundling all routes at once. Static JS assets are now cached immutably. Additionally this PR completly refactors how the router works to make it more modular. This allows users to opt out of the default oak server, and instead create their own.
10 lines
194 B
TypeScript
10 lines
194 B
TypeScript
import { h } from "../deps.ts";
|
|
|
|
interface Props {
|
|
params: Record<string, string | string[]>;
|
|
}
|
|
|
|
export default function Greet(props: Props) {
|
|
return <div>Hello {props.params.name}</div>;
|
|
}
|