2 use warnings FATAL => 'all';
7 ok 1, 'stub for wrapping or layout helpers';
13 my $layout = HTML::Zoom->from_html(<<HTML);
16 <title>Default Title</title>
17 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
18 <meta name="keywords" content="my special website" />
19 <link rel="shortcut icon" href="/favicon.ico" />
20 <link rel="stylesheet" href="/css/core.css" type="text/css" />
22 </body id="content-area">
23 <div>Default Content</div>
28 my $content = HTML::Zoom->from_html(<<HTML);
31 <title>My Awesome Page</title>
35 <p>Here is some content</p>
41 ->template($layout) ## is a wrap object of some sort
46 ## ^^ would be similar to:
51 ->collect_content({into => \@title})
53 ->collect_content({into => \@body})
58 ->replace_content(\@title);
60 ->replace_content(\@body);