Permalink
Browse files

Rename formatter, make it executable

  • Loading branch information...
1 parent b7843aa commit 01a2fb5d4a060de8c66b50568760b512df811859 @tadzik committed May 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 formatter.pl → formatter
View
3 formatter.pl → formatter 100644 → 100755
@@ -1,3 +1,4 @@
+#!/usr/bin/env perl
use 5.014;
use Mojo::JSON;
use Mojo::Template;
@@ -6,4 +7,4 @@
my $mt = Mojo::Template->new;
my $results = Mojo::JSON->new->decode(slurp 'results.json');
-print $mt->render_file('template.tt', $results);
+print $mt->render_file_to_file('template.tt', 'index.html', $results);

0 comments on commit 01a2fb5

Please sign in to comment.