pricecharts

track prices of consumer electronics
Log | Files | Refs | README

commit c31d2727297605e7a12c1ac860fce90bdc69eba1
parent 0200be4c43335a15121c3736e15104dc13c17272
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Tue,  5 May 2015 00:01:18 -0600

tt: use pair instead of key/value

Diffstat:
Mtt/coarse_list.tt | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tt/coarse_list.tt b/tt/coarse_list.tt @@ -26,11 +26,11 @@ </a><br> <div class="breakdown"> - [% FOREACH type IN list.$item.keys %] - [% n = list.$item.$type.count %] - [% type_link = type.lower.replace('[ #\/]', '_') %] + [% FOREACH pair IN list.$item.pairs %] + [% n = pair.value.count %] + [% type_link = pair.key.lower.replace('[ #\/]', '_') %] [% n %] <a href="/[% name_link %]/[% item_link %]/[% type_link %].html"> - [% type %]</a>, + [% pair.key %]</a>, [% END %] </div></div> [% END %]