Skip to content

Commit 786c134

Browse files
committed
chore: update jsdocs
1 parent c311d7a commit 786c134

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ Compile a template string into a render function.
3232
import { compileTemplate } from "rendu";
3333

3434
const template = `
35-
<h1><?= title ?></h1>
35+
<h1>{{ title }}</h1>
3636
<ul>
3737
<? for (const item of items) { ?>
38-
<li><?= item ?></li>
38+
<li>{{ item }}</li>
3939
<? } ?>
4040
</ul>
4141
`;

src/compiler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export type CompiledTemplate<T> = (data: Record<string, any>) => Promise<T>;
1717
* import { compileTemplate } from "rendu";
1818
*
1919
* const template = `
20-
* <h1><?= title ?></h1>
20+
* <h1>{{ title }}</h1>
2121
* <ul>
2222
* <? for (const item of items) { ?>
23-
* <li><?= item ?></li>
23+
* <li>{{ item }}</li>
2424
* <? } ?>
2525
* </ul>
2626
* `;

0 commit comments

Comments
 (0)