Filewatcher File Search File Search
Catalog
Content Search
» » » » »

HTML-Zoom-0.009004.tar.gz

Homepage:-
Package version:-
Architecture:-
Distribution:Perl-CPAN
Filename:HTML-Zoom-0.009004.tar.gz

/HTML-Zoom-0.009004/README

NAME
    HTML::Zoom - selector based streaming template engine

SYNOPSIS
      use HTML::Zoom;

      my $template = <<HTML;
      <html>
        <head>
          <title>Hello people</title>
        </head>
        <body>
          <h1 id="greeting">Placeholder</h1>
          <div id="list">
            <span>
              <p>Name: <span class="name">Bob</span></p>
              <p>Age: <span cla
more»

/HTML-Zoom-0.009004/Changes

0.009004 2011-02-14

- Large chunks of documentation improvements from jnareb
- apply_if method from ocharles
- selector improvements and bugfixes (jnareb, mst)

0.009003 2010-10-12

- mst is an idiot and forgot to add strictures.pm as a dependency

0.009002 2010-10-12

- Added support for more selector syntax support including: 
    element#id
    element.class
    element[attr=foo]
    element[a
more»

/HTML-Zoom-0.009004/t/todo-repeat.t

use strictures 1;
use HTML::Zoom;
use Test::More skip_all => "Totally doesn't work yet";

my $z = HTML::Zoom->from_html(<<HTML);
<html>
<body>
<div id="foo"><p/></div>
</body>
</html>
HTML

my @list = qw(foo bar baz);
my $iter = sub { shift @list };

$z->select("#foo")->repeat(sub {
    my $e = $iter->() or return;
    return sub { $_->select("p")->replace_content($e) };
})->to_html;

ok 1;

done_
more»

Browse inside HTML-Zoom-0.009004.tar.gz

         [DIR]HTML-Zoom-0.009004/ (8)

Download HTML-Zoom-0.009004.tar.gz

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017 FileWatcher.com