2 # A really simple template engine
3 # (c) 2004 Martin Mares <mj@ucw.cz>
15 GetOptions('out|o=s' => \$out, 'exec|e=s' => \@execs) or die "Usage: temple [-o <out>] [-e <string>] <in> ...";
18 open STDOUT, '>:utf8', $out or die "Cannot open $out: $!";
20 if (!@ARGV) { push @ARGV, "-"; }
23 UCW::Temple::parse_string($_, "-e");
26 UCW::Temple::parse_file($_);
28 UCW::Temple::finish();