NAME HTML::Inject - inject content from one HTML file into another SYNOPSIS use HTML::Inject; my $template = HTML::Inject::->new(dom => <<'TARGET');
© 2012 Acme IncTARGET my $result = $template->inject(<<'SOURCE');
© 2012 Acme Inc# # DESCRIPTION "HTML::Inject" is a "template system lite". It allows you to inject content from one HTML file (the "source") into another HTML file (the "target") that has placeholders for that content. Constructor "new(%attr)" Moose-style constructor, accepting a hash of attributes. (Actually this package uses Moo.) Attributes "target" The target HTML to inject. May be provided as an XML::LibXML::Document object, a file handle, a URL, a filename or a plain string of HTML. (To disambiguate between a string of HTML, and a filename/URL which is also a string, strings of HTML must contain at least one line break character!!) Whatever is provided, it will be coerced into an XML::LibXML::Document. "head_element_test" A coderef which takes an XML::LibXML::Element object and returns a boolean. The default is probably fairly sane, matching all "