On 04/06/2011 05:41 PM, Alex Teslik wrote: > As long as the main feature of keeping logic completely separate from > presentation is left intact, this is great news. The limitations of H::T are > the exact reason we chose it as our templating system.
Yes definitely. We use it heavily in places where users aren't that sophisticated and even if they are, we want to restrict the damage that they could do with just templates. > If there were a way for child loops to use vars from the parent loop if they > do not exist in the child, it would be great. The global_vars feature puts the > vars into -every- loop, which is overkill and incurs a very hefty speed > penalty. It also clobbers same named vars in the child. As a result we don't > use global_vars at all and manually populate child loops with parent vars > explicitly as needed. This makes the perl get a little ugly but prevents the > speed hit. Maybe a new "lexical_vars" option that will fall back to a parent-loop or top-level declared var if one doesn't exist in the current loop? That would be similar to the way vars work in Perl loops. Is that what you're asking for? -- 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