Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
Change template suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
mdom committed Jul 18, 2016
1 parent 35afd0f commit 91c1a90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/App/txtnix.pm
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ sub display_tweets {
$fh = \*STDOUT;
}
my $format = $self->template;
my $template_name = "$format.txt";
my $template_name = "$format.mt";

my $template = data_section( __PACKAGE__, $template_name );
if ( !$template ) {
Expand Down Expand Up @@ -551,7 +551,7 @@ sub expand_mention {

__DATA__
@@ pretty.txt
@@ pretty.mt
% use Term::ANSIColor;
% use Text::Wrap;
%
Expand All @@ -570,7 +570,7 @@ __DATA__
% }
% }
@@ simple.txt
@@ simple.mt
% for my $t ( @$tweets ) {
% my $time = $t->strftime( $app->time_format );
<%= $time %> <%= $t->nick %>: <%= $t->text %>
Expand Down

0 comments on commit 91c1a90

Please sign in to comment.