@include
Include content from another template file
Syntax
@include("templateName")@include("templateName", property1: value1, property2: value2)Parameters
Parameter
Required
Description
File Location
com.yourcompany.component/
├── templates/
│ ├── index.html
│ └── include/
│ ├── header.html
│ ├── footer.html
│ └── item.htmlExamples
Basic Include
Passing Properties
String and Variable Properties
Passing Loop Items
Navigation with Nested Includes
Recursive Includes
Gallery Thumbnails
Conditional Includes
Using @includeIf
Negating the Condition
Real-World Examples
Property Access in Includes
Best Practices
Related
Last updated
Was this helpful?

