1 |
This is testing template. |
2 |
|
3 |
File was generated on [[date]]. |
4 |
This year is [[date.yearOfCommonEra]]. |
5 |
|
6 |
This is a list with [[list.count]] items: |
7 |
[[foreach item list]]- item '[[item]]' ([[item.uppercaseString]]) has length [[item.length]] |
8 |
[[end]]List ends here. |
9 |
|
10 |
This is an empty list (nothing there): |
11 |
[[foreach item emptyList]] - you should not see this text '[[item]]' |
12 |
[[end]]Empty list ends here. |
13 |
|
14 |
This is a nil list (nothing there): |
15 |
[[foreach item nilList]] - you should not see this text either '[[item]]' |
16 |
[[end]]Nil list ends here. |
17 |
|
18 |
[[if emptyList.count]]>>x [[emptyList.count]] [[emptyList.count.intValue]]<<[[end]] |
19 |
[[if list.count]]>> list <<[[end]] |
20 |
[[if not emptyList.count]]>>y [[emptyList.count]]<<[[end]] |
21 |
|
22 |
|
23 |
File ends here. |