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

HTML-Zoom-0.009005.tar.gz

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

/HTML-Zoom-0.009005/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.009005/Changes

0.009005 2011-05-12

  - Perforce escaping of meta-characters in selectors and test (rafl)
  - New Feature:  HTML::Zoom will autoload FilterBuilder functions so that
    you can avoid a bit of boilerplate in method calls.  Now you can replace:

        $z->select('div')->replace_content("Hello World");

    With:

        $z->replace_content(div => "Hello World");

  - Lots of changes to FilterBui
more»

/HTML-Zoom-0.009005/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.009005.tar.gz

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

Download HTML-Zoom-0.009005.tar.gz

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