=================================================================== RCS file: /cvs/todotxt/Text-Todo/bin/dudelicious.pl,v retrieving revision 1.13 retrieving revision 1.16 diff -u -r1.13 -r1.16 --- todotxt/Text-Todo/bin/dudelicious.pl 2010/05/01 22:11:58 1.13 +++ todotxt/Text-Todo/bin/dudelicious.pl 2010/05/05 03:01:08 1.16 @@ -82,6 +82,7 @@ else { $self->render( list => $self->helper('get_list'), + tags => $self->helper('todo')->known_tags, layout => 'todotxt' ); } @@ -146,11 +147,11 @@ @@ tags.txt.ep % foreach my $tag (keys %{ $tags }) { -<%= $tag %>, <%= $tags->{$tag} %> +<%= $tag %>: <%= $tags->{$tag} %> % } @@ tag.txt.ep -# <%= $tag %> +# <%== $tag %> % foreach my $item (@{ $items}) { <%= $item %> % } @@ -160,11 +161,18 @@ @@ index.html.ep % foreach my $file (@{ $files }) { -<%== $file %>
+% my ($basename) = $file =~ /^(.*?)(?:\.[^\.]+)?$/xms; +<%= $file %>
% } @@ list.html.ep

<%= $file %>

+% if ( $tags ) { +% foreach my $tag (keys%{ $tags }) { +%= include 'tag_menu', tag => $tag +
+% } +% }
    % foreach my $entry (@{ $list }) {
  1. @@ -178,15 +186,25 @@ @@ tags.html.ep % foreach my $tag (keys%{ $tags }) { -<%= $tag %> == <%= $tags->{$tag} %>
    +<%= $tag %> == <%= $tags->{$tag} %>
    % } @@ tag.html.ep

    <%= $tag %>

    -% foreach my $item (@{ $items }) { +% foreach my $item (sort @{ $items }) { <%= $item %>
    % } +@@ tag_menu.html.ep +% my $items = todo()->listtag($tag); +<%= $tag %>: + + + @@ layouts/todotxt.html.ep @@ -218,7 +236,7 @@ Since the $VERSION can't be automatically included, here is the RCS Id instead, you'll have to look up $VERSION. - $Id: dudelicious.pl,v 1.13 2010/05/01 21:11:58 andrew Exp $ + $Id: dudelicious.pl,v 1.16 2010/05/05 02:01:08 andrew Exp $ =head1 SYNOPSIS