Skip to content

Commit

Permalink
Provide cart iterator for Template::Zoom engine.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Oct 26, 2010
1 parent d2e102b commit 1c4f31b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/WellWell/Compose/Component/Zoom.pm
Expand Up @@ -38,7 +38,7 @@ sub new {

sub process {
my ($self, $attributes) = @_;
my ($content, $xml_spec, $spec, $html_object, $zoom);
my ($content, $xml_spec, $spec, $iter_name, $html_object, $zoom);

# parse specification
$xml_spec = new Template::Zoom::Specification::XML;
Expand All @@ -47,6 +47,7 @@ sub process {
die "$0: error parsing $self->{specification}: " . $xml_spec->error() . "\n";
}

$spec->set_iterator('cart', $Vend::Items);
$html_object = new Template::Zoom::HTML;

$html_object->parse_template($self->{template}, $spec);
Expand Down

0 comments on commit 1c4f31b

Please sign in to comment.