Skip to content

Commit 61a4ec3

Browse files
committed
docs: add intro to directives
1 parent d63ddf1 commit 61a4ec3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/versions/v3/language-elements/directives.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ description: Learn about different directives in Textwire, including @if, @each,
55

66
# Directives
77

8+
Textwire directives provide powerful control over your templates through commands that begin with `@`. These directives enable you to conditionally display content, iterate over data, create reusable layouts, and build modular components. Each directive serves a specific purpose in the template rendering process, allowing you to write dynamic and maintainable templates without mixing complex logic into your presentation layer.
9+
810
- [@if](#if) `@if(x == 1)`
911
- [@use](#use) `@use("layouts/main")`
1012
- [@insert](#insert) `@insert("title", "Home")`

0 commit comments

Comments
 (0)