···424424425425The generated `*_templ.go` should be regenerated whenever `.templ` files change.
426426427427-Templ files must use tabs rather than spaces.
427427+Templ files must use tabs rather than spaces. **Never use spaces for indentation in `.templ` files** — the templ parser will error with a parse failure. This applies when writing new components, editing existing ones, and constructing multi-line template strings. A post-edit hook runs `templ fmt` automatically to catch any accidental spaces.
428428429429## Command-Line Flags
430430
+14-14
internal/web/components/layout.templ
···4455// LayoutData contains all the data needed for the layout
66type LayoutData struct {
77- Title string
88- IsAuthenticated bool
99- UserDID string
1010- UserProfile *bff.UserProfile
1111- CSPNonce string
1212- IsModerator bool // User has moderation permissions
1313- UnreadNotificationCount int // Number of unread notifications
77+ Title string
88+ IsAuthenticated bool
99+ UserDID string
1010+ UserProfile *bff.UserProfile
1111+ CSPNonce string
1212+ IsModerator bool // User has moderation permissions
1313+ UnreadNotificationCount int // Number of unread notifications
14141515 // OpenGraph metadata (optional, uses defaults if empty)
1616 OGTitle string // Falls back to Title + " - Arabica"
···7575 <link rel="icon" href="/static/favicon.svg" type="image/svg+xml"/>
7676 <link rel="icon" href="/static/favicon-32.svg" type="image/svg+xml" sizes="32x32"/>
7777 <link rel="apple-touch-icon" href="/static/icon-192.svg"/>
7878- <link rel="stylesheet" href="/static/css/output.css?v=0.6.0"/>
7878+ <link rel="stylesheet" href="/static/css/output.css?v=0.6.1"/>
7979 <style>
8080 [x-cloak] { display: none !important; }
8181 </style>
···168168 </button>
169169 </div>
170170 @HeaderWithProps(HeaderProps{
171171- IsAuthenticated: data.IsAuthenticated,
172172- UserProfile: data.UserProfile,
173173- UserDID: data.UserDID,
174174- IsModerator: data.IsModerator,
175175- UnreadNotificationCount: data.UnreadNotificationCount,
176176- })
171171+ IsAuthenticated: data.IsAuthenticated,
172172+ UserProfile: data.UserProfile,
173173+ UserDID: data.UserDID,
174174+ IsModerator: data.IsModerator,
175175+ UnreadNotificationCount: data.UnreadNotificationCount,
176176+ })
177177 <main class="flex-grow container mx-auto py-8" data-transition>
178178 @content
179179 </main>