App-Mowyw
view release on metacpan or search on metacpan
example/source/bar.shtml view on Meta::CPAN
$x = .5*($x + $x[$i]);
$y = .5*($y + $y[$i]);
$im->setPixel(int $x, int $y, $black);
}
my $fn = sprintf("sierpinski-%02d.png", $edges);
open(OUT, ">", $fn) or die "$0: can't write to file '$fn': $!";
print "Writing file $fn\n";
binmode OUT;
print OUT $im->png;
close OUT;
}
[%endsyntax%]</pre>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed ut dui ac lacus egestas vehicula. Quisque faucibus, risus id consequat porta, orci ligula condimentum mi, ac commodo leo libero eget tortor. Maecenas a ligula in nibh luctus gravida. Pr...
</div>
[%menu nav bar%]
lib/App/Mowyw.pm view on Meta::CPAN
use Carp;
use Storable qw(dclone);
use Scalar::Util qw(reftype blessed);
use File::Copy;
use Encode qw(encode decode);
use Config::File qw(read_config_file);
use Exporter qw(import);
use Data::Dumper;
use Carp qw(confess);
binmode STDOUT, ':encoding(UTF-8)';
our @EXPORT_OK = qw(
get_config
parse_file
process_dir
process_file
parse_str
parse_all_in_dir
);
lib/App/Mowyw.pm view on Meta::CPAN
unshift @{$m->{FILES}}, $header_fn;
$header = parse_file($header_fn, $m);
}
unless (exists $metadata->{OPTIONS}{'no-footer'}){
my $m = my_dclone($metadata);
my $footer_fn = get_include_filename('include', 'footer', $fn);
unshift @{$m->{FILES}}, $footer_fn;
$footer = parse_file($footer_fn, $metadata);
}
my ($tmp_fh, $tmp_name) = tempfile( UNLINK => 1);
binmode $tmp_fh, ":encoding($config{encoding})";
print $tmp_fh $header, $str, $footer;
close $tmp_fh;
if (compare($new_fn, $tmp_name) == 0){
print STDERR " not changed\n" unless $config{quiet};
} else {
copy($tmp_name, $new_fn);
print STDERR " done\n" unless $config{quiet};
}
} else {
if (compare($fn, $new_fn) == 0){
( run in 0.934 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )