$input_tmpl =~ s/\seq\s/ == /ig;
$input_tmpl =~ s/HTML/html/ig;
$input_tmpl =~ s/URL/url/ig;
- $input_tmpl =~ s/\w*__first__/loop.first/ig;
- $input_tmpl =~ s/\w*__last__/loop.last/ig;
- $input_tmpl =~ s/\w*__odd__/loop.odd/ig;
- $input_tmpl =~ s/\w*__even__/loop.even/ig;
- $input_tmpl =~ s/\w*__counter__/loop.count/ig; #loop.count gives the range (0..max) whereas loop.index gives the range (1..max+1), __counter__ is unknown
+ $input_tmpl =~ s/\w*\.__first__/loop.first/ig;
+ $input_tmpl =~ s/\w*\.__last__/loop.last/ig;
+ $input_tmpl =~ s/\w*\.__odd__/loop.odd/ig;
+ $input_tmpl =~ s/\w*\.__even__/loop.even/ig;
+ $input_tmpl =~ s/\w*\.__counter__/loop.count/ig; #loop.count gives the range (0..max) whereas loop.index gives the range (1..max+1), __counter__ is unknown
#hack to get around lack of javascript filter
$input_tmpl =~ s/\|JS/|replace("'", "\\'") |replace('"', '\\"') |replace('\\n', '\\\\n') |replace('\\r', '\\\\r')/ig;