Hi,
I'm trying to create a table of celestial objects with almanac data. I want to use a for loop to create the table based on an array of chosen objects, but it doesn't like how I'm using the tags for some reason.
As an example, I have the following in my template:
#set planets = ['Mercury', 'Venus', 'Mars']
#for planet in planets
<tr>
<td class="celestialTableObject">$planet</td>
<td class="celestialTableData">$almanac.$planet.rise</td>
<td class="celestialTableData">$almanac.$planet.transit</td>
<td class="celestialTableData">$almanac.$planet.set</td>
<td class="celestialTableData">$almanac.$planet.az</td>
<td class="celestialTableData">$almanac.$planet.alt</td>
<td class="celestialTableData">$almanac.$planet.ra</td>
<td class="celestialTableData">$almanac.$planet.dec</td>
<td class="celestialTableData">$almanac.$planet.mag</td>
</tr>
#end for
The table prints the planet name as expected, but all the data cells are printing with .$planet.rise .$planet.set and so on.
How can I get the CheetahGenerator to use both tags?