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: README.md
+80Lines changed: 80 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,4 +172,84 @@ def index():
172
172
</ul>
173
173
</body>
174
174
</html>
175
+
```
176
+
177
+
### Loop (for)
178
+
Sucuri has a loop in collections of objects, so it is necessary to use the object that has this characteristic as a parameter and to use the information in that collection. See the example below:
179
+
- Sucuri file (`template_include.suc`):
180
+
```
181
+
include inc/link
182
+
include inc/list
183
+
184
+
html
185
+
body
186
+
h1 Hello
187
+
| Title
188
+
| More
189
+
+link
190
+
h1 Test
191
+
+list
192
+
```
193
+
- File inside the folder `inc` called `link.suc` (`inc/link.suc`):
194
+
```
195
+
a(href='#') {text}
196
+
```
197
+
- File inside the folder `inc` called `list.suc` (`inc/list.suc`):
0 commit comments