8 my $body = delete $s->{body};
9 like($body, qr/^\s+<p>Some markdown here.<\/p>\s+$/sm, 'Body correct');
13 description => '--DESCRIPTION--',
14 keywords => '--KW1-- --KW2--'
20 my $ps = SCSite::PageSet->new(base_dir => 't/pages');
22 my $test_html = q{<html>
24 <title>--TITLE--</title>
25 <meta name="description" content="--DESCRIPTION--" />
26 <meta name="keywords" content="--KW1-- --KW2--" />
29 <p>Some markdown here.</p>
33 check_structure($ps->_extract_from_html($test_html));
35 my $test_md = q{Title: --TITLE--
36 description: --DESCRIPTION--
37 keywords: --KW1-- --KW2--
42 check_structure($ps->_extract_from_md($test_md));
44 check_structure($ps->get({ path => 'index' }));
46 check_structure($ps->get({ path => 'one/two' }));