Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
FlamesX-128 authored Nov 10, 2021
1 parent 2cb785a commit a44dca2
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ This is the list of changes:

### **Examples:**
Example One:
```ts
// main.ts
import render from "https://deno.land/x/denotag/mod.ts";

(async function main() {
const res = await render("./main.html");

console.log(res);
})();
```

```html
<!-- main.html -->
<body>
<deno>
// This is a standard function that adds something to the html.
Expand All @@ -31,7 +43,19 @@ Result:
```

Example Two:
```ts
// main.ts
import render from "https://deno.land/x/denotag/mod.ts";

(async function main() {
const res = await render("./main.html");

console.log(res);
})();
```

```html
<!-- main.html -->
<body>
<deno>
for (const txt of ["orange", "apple"]) {
Expand All @@ -55,4 +79,4 @@ Deno tag only accepts JS, tested with:

- v8 9.4.146.19

- typescript 4.4.2
- typescript 4.4.2

0 comments on commit a44dca2

Please sign in to comment.