-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmod.ts
43 lines (39 loc) · 1.06 KB
/
mod.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright 2022 the oak authors. All rights reserved. MIT License.
/** A server side rendering framework for Deno CLI and Deploy.
*
* Incorporating [acorn](https://deno.land/x/acorn/),
* [nano-jsx](https://nanojsx.io/), and [twind](https://twind.dev/), it provides
* the tooling to provide a server centric framework for providing dynamic
* websites served from the edge.
*
* ### Example
*
* ```ts
* import { Fragment, h, init, render, tw } from "../mod.ts";
*
* const router = init();
* const style = createStyle({
* title: "text-xl",
* });
*
* const App = ({ name }: { name: string }) => (
* <>
* <div class={style("title")}>Hello {name}!</div>
* </>
* );
*
* router.get("/", render(<App name="world" />));
*
* router.listen();
* ```
*
* @module
*/
import "./jsx.d.ts";
export { h } from "nano-jsx/core";
export { Fragment } from "nano-jsx/fragment";
export { apply, tw } from "twind";
export { css } from "twind/css";
export { render } from "./handlers.ts";
export { init } from "./init.ts";
export { createStyle } from "./styles.ts";