Skip to content

Commit

Permalink
Renamed the variables in songs.tt.
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Jan 15, 2017
1 parent b2249a2 commit ab69188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/generate
Expand Up @@ -40,8 +40,8 @@ $tt->process('artists.tt', {
or die $tt->error;

$tt->process('songs.tt', {
tracks => \@songs,
title => 'Songs',
songs => \@songs,
title => 'Songs',
}, 'songs/index.html')
or die $tt->error;

Expand Down
4 changes: 2 additions & 2 deletions in/songs.tt
Expand Up @@ -6,9 +6,9 @@
<tr>
<th>Song</th>
</tr>
[% FOREACH track IN tracks.sort('title') -%]
[% FOREACH song IN songs.sort('title') -%]
<tr>
<td><a href="[% track.filename %]">[% track.title %]</a></td>
<td><a href="[% song.filename %]">[% song.title %]</a></td>
</tr>
[% END %]
</table>
Expand Down

0 comments on commit ab69188

Please sign in to comment.