fixed script, now handles URL replacement properly
authorChristopher Hall <chris.hall@catalyst.net.nz>
Tue, 1 Feb 2011 22:57:25 +0000 (11:57 +1300)
committerChristopher Hall <chris.hall@catalyst.net.nz>
Tue, 1 Feb 2011 22:57:25 +0000 (11:57 +1300)
installer/html-template-to-template-toolkit.pl

index b80a443..5f1c245 100755 (executable)
@@ -162,7 +162,7 @@ foreach my $file (@template_files) {
        # misc 'patches'
        $input_tmpl =~ s/\seq\s/ == /ig;
        $input_tmpl =~ s/HTML/html/ig;
-       $input_tmpl =~ s/URL/url/ig;
+       $input_tmpl =~ s/URL/url/g;
        $input_tmpl =~ s/\w*\.__first__/loop.first/ig;
        $input_tmpl =~ s/\w*\.__last__/loop.last/ig;
        $input_tmpl =~ s/\w*\.__odd__/loop.odd/ig;