Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subsequent calls to process cause an error #85

Open
mrmaloof opened this issue Mar 13, 2015 · 0 comments
Open

Subsequent calls to process cause an error #85

mrmaloof opened this issue Mar 13, 2015 · 0 comments

Comments

@mrmaloof
Copy link
Contributor

A second call to process produces the following error.

wrong target type in paste: 'XML::Twig', should be XML::Twig::Elt or a subclass at /home/www/Devo/Template-Flute/lib/Template/Flute.pm line 740

Here is code to illustrate the problem.

#!/usr/bin/perl
use Template::Flute;

my $spec = q{<specification>
<list name="list" iterator="test">
<param name="value"/>
</list>
</specification>
};

my $html = q{<html><div class="list"><div class="value">TEST</div></div></html>};

$flute = Template::Flute->new(
    template      => $html,
    specification => $spec,
    values        => { test => [ { value => $value } ] },
);

$flute->process;
$flute->process;

exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant