Hello -

My attempt to pass in a template parameter named "component" is stymied
by some behind-the-scenes clobbering. I don't know my way around the
Template sources but the line in Template::Context,

            $stash->set('component', $element);

looks awfully like it might be the culprit. It leaves a
Template::Document object. Dumper.dump_html says:

$VAR1 = bless( {
'_HOT' => 1,
'_BLOCK' => sub { "DUMMY" },
'_DEFBLOCKS' => {},
'modtime' => 1054640428,
'name' => 'test.xml'
}, 'Template::Document' );

Is this intentional, documented? I didn't see anything to suggest it
was.

**

In a related-but-not question, is that 'modtime' parameter it reveals
something to be relied on i.e. is it part of some API? It would be great
to use it as currently I'm going thru' contortions to get page
modification times and it would be nice to use it if it's there and
being worked out already ;-)

Cheers, Paul

-- 
Paul Makepeace ....................................... http://paulm.com/

"What is that on your face? The crusted wisdom of an old man's shoes."
   -- http://paulm.com/toys/surrealism/

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to