NAME

HTML::Persistent::HTML - Import/Export HTML

SYNOPSIS

use HTML::Persistent;

my $db = HTML::Persistent->new( dir => '/tmp/test-directory' ); my $node = $db->{foo}{bar}{baz}; my $html = $node->HTML();

# NOTE: Import only supports writing into an empty node! $html->import( $chunk1 ); $html->import( $chunk2 ); $html->import( $chunk3 ); $html->eof(); $db->sync();

# Output HTML reconstructed from database. print $html->export();