Skip to content

Commit 09a0336

Browse files
committed
docs(rendering): change code fence language from dve to html
- Replace dve language tag with html across rendering docs for syntax highlighting
1 parent bd41b39 commit 09a0336

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

‎docs/en/rendering/index.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ await router.serve(8000)
2626

2727
Create template in `views/` folder:
2828

29-
```dve
29+
```html
3030
<!-- views/welcome.dve -->
3131
<!DOCTYPE html>
3232
<html>
@@ -60,7 +60,7 @@ export function GET(ctx: Context): Response {
6060

6161
### Variables
6262

63-
```dve
63+
```html
6464
<!-- Simple variable -->
6565
<p>{{username}}</p>
6666

@@ -73,7 +73,7 @@ export function GET(ctx: Context): Response {
7373

7474
### Conditionals
7575

76-
```dve
76+
```html
7777
{{#if user.isAdmin}}
7878
<button>Delete User</button>
7979
{{/if}} {{#if posts.length > 0}}
@@ -90,7 +90,7 @@ export function GET(ctx: Context): Response {
9090

9191
### Loops
9292

93-
```dve
93+
```html
9494
{{#each users as u}}
9595
<div class="user">
9696
<!-- Access property from alias -->
@@ -112,7 +112,7 @@ export function GET(ctx: Context): Response {
112112

113113
### Includes
114114

115-
```dve
115+
```html
116116
<!-- Include other template with > operator -->
117117
{{> header.dve}}
118118

@@ -127,7 +127,7 @@ export function GET(ctx: Context): Response {
127127

128128
DVE supports JavaScript-like expressions for lookups and operators:
129129

130-
```dve
130+
```html
131131
<!-- Optional chaining and nullish coalescing -->
132132
<p>Hello {{ user?.name ?? 'Guest' }}.</p>
133133

@@ -140,7 +140,7 @@ DVE supports JavaScript-like expressions for lookups and operators:
140140

141141
### Raw Output
142142

143-
```dve
143+
```html
144144
<!-- Default: HTML escaped (safe from XSS) -->
145145
<p>{{userInput}}</p>
146146

@@ -152,7 +152,7 @@ DVE supports JavaScript-like expressions for lookups and operators:
152152

153153
### Template Inheritance
154154

155-
```dve
155+
```html
156156
<!-- views/layouts/base.dve -->
157157
<!DOCTYPE html>
158158
<html>
@@ -192,7 +192,7 @@ export function GET(ctx: Context): Response {
192192
}
193193
```
194194

195-
```dve
195+
```html
196196
<p>Date: {{formatDate(transaction.date)}}</p>
197197
<p>Amount: {{formatCurrency(transaction.amount)}}</p>
198198
```

‎docs/en/rendering/streaming.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function GET(ctx: Context): Response {
5858

5959
All DVE template features work with streaming:
6060

61-
```dve
61+
```html
6262
<!-- views/streaming-demo.dve -->
6363
<!DOCTYPE html>
6464
<html>

‎docs/id/rendering/index.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ await router.serve(8000)
2626

2727
Buat template di `views/` folder:
2828

29-
```dve
29+
```html
3030
<!-- views/welcome.dve -->
3131
<!DOCTYPE html>
3232
<html>
@@ -60,7 +60,7 @@ export function GET(ctx: Context): Response {
6060

6161
### Variables
6262

63-
```dve
63+
```html
6464
<!-- Variabel sederhana -->
6565
<p>{{namaPengguna}}</p>
6666

@@ -73,7 +73,7 @@ export function GET(ctx: Context): Response {
7373

7474
### Conditionals
7575

76-
```dve
76+
```html
7777
{{#if pengguna.isAdmin}}
7878
<button>Hapus Pengguna</button>
7979
{{/if}} {{#if postingan.length > 0}}
@@ -90,7 +90,7 @@ export function GET(ctx: Context): Response {
9090

9191
### Loops
9292

93-
```dve
93+
```html
9494
{{#each pengguna as p}}
9595
<div class="user">
9696
<!-- Akses properti dari alias -->
@@ -112,7 +112,7 @@ export function GET(ctx: Context): Response {
112112

113113
### Includes
114114

115-
```dve
115+
```html
116116
<!-- Include template lain dengan operator > -->
117117
{{> header.dve}}
118118

@@ -127,7 +127,7 @@ export function GET(ctx: Context): Response {
127127

128128
DVE mendukung expression seperti JavaScript untuk lookup dan operator:
129129

130-
```dve
130+
```html
131131
<!-- Optional chaining dan nullish coalescing -->
132132
<p>Halo {{ pengguna?.nama ?? 'Tamu' }}.</p>
133133

@@ -140,7 +140,7 @@ DVE mendukung expression seperti JavaScript untuk lookup dan operator:
140140

141141
### Raw Output
142142

143-
```dve
143+
```html
144144
<!-- Default: HTML di-escape (aman dari XSS) -->
145145
<p>{{inputPengguna}}</p>
146146

@@ -152,7 +152,7 @@ DVE mendukung expression seperti JavaScript untuk lookup dan operator:
152152

153153
### Template Inheritance
154154

155-
```dve
155+
```html
156156
<!-- views/layouts/base.dve -->
157157
<!DOCTYPE html>
158158
<html>
@@ -192,7 +192,7 @@ export function GET(ctx: Context): Response {
192192
}
193193
```
194194

195-
```dve
195+
```html
196196
<p>Tanggal: {{formatTanggal(transaksi.tanggal)}}</p>
197197
<p>Jumlah: {{formatMataUang(transaksi.jumlah)}}</p>
198198
```

‎docs/id/rendering/streaming.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export function GET(ctx: Context): Response {
5858

5959
Semua fitur DVE template bekerja dengan streaming:
6060

61-
```dve
61+
```html
6262
<!-- views/streaming-demo.dve -->
6363
<!DOCTYPE html>
6464
<html>

0 commit comments

Comments
 (0)