Dancer2-Plugin-LiteBlog

 view release on metacpan or  search on metacpan

lib/Dancer2/Plugin/LiteBlog/Scaffolder.pm  view on Meta::CPAN

    }
	return $data;
}

sub base64_to_image {
    my ($base64_content, $output_path) = @_;

    # Decode the base64 string
    my $binary_data = decode_base64($base64_content);

    # Write the decoded binary data to a file
    write_file($output_path, {binmode => ':raw'}, $binary_data);
}

sub scaffold {
    my ($basedir, $force) = @_;

	my $data = load();
	foreach my $file_k (keys %$data) {
        my @subs = split('/', $file_k);
        my $filename = pop @subs;



( run in 0.240 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )