On 04/06/2011 05:13 PM, Brad Baxter wrote:

> But finally I decided I needed to abandon it,
> because mentally I just couldn't handle the fact that setting an
> attribute in the object was dependent on the attribute existing in
> the template.

I'm not sure I understand this problem. HTML template doesn't really 
work with objects, just hash references in loops. Are are you saying it 
was using your hash-based objects as if they were just hashes? That 
itself was probably not the best idea.

Also, was this just a matter of turning die_on_bad_params off? I know 
it's the default, but if you don't want everything in your hashes to be 
in the template, then that's the right solution.

> __index__ (__counter__-1)

I can see adding that one. It can be derived from counter, but making 
you use HTML::Template::Expr to derive it could be a pain.

> __break__

I looked at the docs for HTML::Template::Compiled (which are really 
sparse by the way with lots of circular references) and I'm not quite 
sure what it does. Does it stop the current loop? If so, that seems like 
a really bad idea for just a specially named tmpl_var. Although, I could 
see the use in a <tmpl_break> tag.

Thanks for the feedback.

-- 
Michael Peters
Plus Three, LP

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to