reddit this site:

top ten posters

[% BLOCK b_user %]
  • [% user.user %] ([% user.total_posts %])
  • [% END %]
      [% IF topusers_tpl %] [% # URGH, this is ugly and wrong but I couldn't figure out how to include string literals in the template %] [% tmp = "\[\% BLOCK b_user \%\]
    • \[\% user.user \%\] (\[\% user.total_posts \%\])
    • \[\% END \%\]\[\% INCLUDE b_user FOREACH user = topusers \%\]" %] [% tmp %] [% ELSE %] [% INCLUDE b_user FOREACH user = topusers %] [% END %]

    top ten hosts

    [% BLOCK b_host %]
  • [% host.host %] ([% host.total_posts %])
  • [% END %]
      [% IF tophosts_tpl %] [% tmp = "\[\% BLOCK b_host \%\]
    • \[\% host.host \%\] (\[\% host.total_posts \%\])
    • \[\% END \%\]\[\% INCLUDE b_host FOREACH host = tophosts \%\]" %] [% tmp %] [% ELSE %] [% INCLUDE b_host FOREACH host = tophosts %] [% END %]