Skip to content

Commit 05ba7ac

Browse files
committed
Fix indentation in README.md code examples
Corrected inconsistent indentation in code blocks demonstrating `slot`, `call`, and `use` tags to ensure proper formatting and readability.
1 parent 73ccca8 commit 05ba7ac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,8 @@ The `child` tag can only be used within `block` tags. Its function is to place t
285285

286286
```
287287
<% block name %>
288-
 <% slot slot_name %>
289-
   content
288+
<% slot slot_name %>
289+
content
290290
<% /slot %>
291291
292292
content...
@@ -301,21 +301,21 @@ The `slot` tag is used to define slot positions in parent templates. Child templ
301301

302302
```
303303
<% block name %>
304-
 <% call other_block_name %>
305-
   <% slot slot_name %>
306-
     content
304+
<% call other_block_name %>
305+
<% slot slot_name %>
306+
content
307307
<% /slot %>
308-
 <% /call %>
308+
<% /call %>
309309
310310
content...
311311
<% /block %>
312312
```
313313

314314
```
315315
<% block name %>
316-
 <% call other_block_name slot1="slot_content_1" slot2="slot_content_2" %>
316+
<% call other_block_name slot1="slot_content_1" slot2="slot_content_2" %>
317317
<% slot slot3 %>
318-
     slot_content_3
318+
slot_content_3
319319
<% /slot %>
320320
<% /call %>
321321
@@ -329,7 +329,7 @@ The `slot` tag is used to define slot positions in parent templates. Child templ
329329

330330
```
331331
<% block name %>
332-
 <% use other_block_name slot1="slot_content_1" slot2="slot_content_2" %>
332+
<% use other_block_name slot1="slot_content_1" slot2="slot_content_2" %>
333333
334334
content...
335335
<% /block %>

0 commit comments

Comments
 (0)