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
Template syntax reference for RapidWeaver Elements components
icon
brackets-curly
Elements Language
The Elements Language is a lightweight yet powerful templating system built into RapidWeaver Elements. It uses {{…}} syntax for property insertion and provides expressive directives like @if, @each, and @include for dynamic content generation. The language is designed to keep your templates clean, intuitive, and focused on HTML structure.
Property Insertion
Use double curly braces to insert component properties, page data, or collection values directly into your markup:
{% hint style="warning" %}
A template @if accepts a single condition (optionally negated with !). Boolean operators (&&, ||) and comparisons (==, >, etc.) are not allowed and cause a lexer error. See Combining Conditions for the supported alternatives.
{% endhint %}
Looping Over Collections
@each(item in items)
<li>{{item.title}}</li>
@endeach
@each(page in pages)
@if(page::isFirst)
<liclass="first">{{page.title}}</li>
@else
<li>{{page.title}}</li>
@endif
@endeach