Hi Dan,
Dan Horne wrote:
Hi all,
First off, apologies if this is not the correct place to discuss
HTML::Template::Plugin::Dot - if there is an alternative, please let me
know.
Strictly speaking, this list is specifically for HTML::Template, and the
related modules authored by Sam Tregar. I don't know if he minds us discussing
HTP::Dot here, but I do have the sneaking suspicion he doesn't really
appreciate my little module: it goes against the main philosophy of
HTML::Template. In any case I take full responsibility for it myself: Sam is
in no way involved in the dot extension. I'll put a more prominent note in my
docs about where to get support for it.
I came across a problem when I tried using CGI::Application::Plugin::HTDot -
I couldn't use a parameter with a dot in its name as per the
HTML::Template::Plugin::Dot examples. Instead I get:
Bare word 't.name' not allowed in argument list to 'greeting' in dot
expression 't.greeting(t.name)' at
/usr/local/lib/perl5/site_perl/5.8.0/Class/Trigger.pm line 51
Ok, now that the disclaimer is out of the way, let's have a look at your
issue. Subexpressions are still rather limited and fragile, and depend heavily
on what you pass in, and in which order. In this case, I'm assuming that the
problem is related to the fact that you're referencing the same object in two
levels. If you dare, take a quick look at my
HTML::Template::Plugin::Dot::Helpers package. It has some working examples of
dotted subexpressions.
Unfortunately, it's almost 4:30 am here, and I really need to get some sleep.
Your test script is a great help in driving the point home, and will give me a
good headstart in debugging. I'll get back to you tomorrow, hopefully.
I wondering if I misunderstand the ability to supply dotted parameters to
method calls. I've come up with a simple case that illustrates my problem
below
No, I think your example ought to work. I appreciate the test code!
Regards
Dan
Rhesa Rozendaal <[EMAIL PROTECTED]>
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users