You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/blade-templates.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ slug: blade-templates
4
4
path: docs/v1/blade-templates
5
5
uri: /docs/1.x/blade-templates
6
6
---
7
+
7
8
# Blade Templates
8
9
9
10
InspireCMS leverages Laravel's powerful Blade templating engine to create dynamic templates. This guide covers core Blade functionality specific to InspireCMS.
@@ -47,7 +48,7 @@ InspireCMS extends Blade with custom directives for accessing content properties
47
48
> [!note]
48
49
> For comprehensive coverage of property directives, see the [Content](./fe-content){.doc-link} documentation.
49
50
50
-
```php
51
+
```blade
51
52
<!-- Basic property access -->
52
53
<h1>@property('hero', 'title')</h1>
53
54
@@ -74,12 +75,11 @@ InspireCMS extends Blade with custom directives for accessing content properties
74
75
```
75
76
76
77
> [!note]
78
+
>
77
79
> For layouts and template inheritance, see the [Layouts](./layouts){.doc-link} documentation.
78
-
79
-
> [!note]
80
+
>
80
81
> For components and reusable UI elements, see the [Components](./components){.doc-link} documentation.
81
-
82
-
> [!note]
82
+
>
83
83
> For template implementation examples, see the [Templates](./templates){.doc-link} documentation.
- Use `inspirecms_content()` helper for retrieving content instead of direct database queries
205
-
- Always check if properties exist before using them
206
-
- Cache frequent content queries for better performance
207
-
- For large content sets, use pagination to improve page load times
208
-
- Use property directives in Blade templates for cleaner syntax
205
+
-Use `inspirecms_content()` helper for retrieving content instead of direct database queries
206
+
-Always check if properties exist before using them
207
+
-Cache frequent content queries for better performance
208
+
-For large content sets, use pagination to improve page load times
209
+
-Use property directives in Blade templates for cleaner syntax
209
210
210
-
> [!note]
211
+
> [!note]
212
+
>
211
213
> For details on how to use content properties in templates, see the [Blade](./blade-templates){.doc-link} documentation.
212
-
> For examples of displaying content in components and layouts, see the [Components](./components){.doc-link} and [Layouts](./layouts){.doc-link} documentation.
214
+
>
215
+
> For examples of displaying content in components and layouts, see the [Components](./components){.doc-link} and [Layouts](./layouts){.doc-link} documentation.
0 commit comments