Subject: | SimpleTaglib Documention (at least) unclear |
This regards Apache::AxKit::Language::XSP::SimpleTaglib. The doc says
The called subs get passed 3 parameters: The parser object,
the tag name, and an attribute hash. This hash only contains...
whereas when I do
sub blog : attribOrChild... {
return << 'EOC';
warn "params ".Dumper (\@_);
...
EOC
I see in the logs
params $VAR1 = [
bless( do{\(my $o = 146526668)}, 'AxKit::Apache' ),
bless( do{\(my $o = 135610372)}, 'Apache::Request' ),
bless( do{\(my $o = 148471176)}, 'XML::LibXML::Document' )
];
I only see the current attributes when I do
sub blog : attrib(....) {
warn "params ".Dumper (\@_);
return << 'EOC';
...
EOC
which somehow contradicts the documented model that the __returned__
code is supposed to be executed at request time.
Slightly confused.
\rho