# A utility class that can store SAX events and replay them back to some SAX
# handler as many times as you'd like. Useful for both cloning and including.
+use strict;
+use warnings;
package XML::TemplateSAX::Buffer;
use base qw(XML::SAX::Base);
sub new {
my $class = shift;
- my %options = @_;
+ my $ptr = shift;
my $self = {
- events => []
+ events => [],
+ ptr => $ptr
};
bless($self, $class);
return $self;