package html::content_handler;

use strict;
use warnings;

use base qw(Class::Prototyped HTML::Seamstress);


use lib '/ernest/dev/seamstress/t/';
use base qw(HTML::Seamstress::Base); 

our $tree;

#warn HTML::Seamstress::Base->comp_root(); 
#HTML::Seamstress::Base
sub new {
  my $file = __PACKAGE__->comp_root() . 'html/content_handler.html' ;

  -e $file or die "$file does not exist. Therefore cannot load";

  $tree =HTML::TreeBuilder->new;
  $tree->store_declarations;
  $tree->parse_file($file);
  $tree->eof;
  
  bless $tree, __PACKAGE__;
}

1;
