Re: [PHPTAL] PHPTAL 1.2.0 alpha - is this a bug or my fail?!

2009-05-15 Thread Alister Cameron
Billiant! All fixed :) Think I went a bit slot-crazy ;) Cheers, -Alister 2009/5/15 Kornel Lesiński > It seems that you've used slots where macros would have been more > appropriate. > > > This just defines the same slot many times: > > > > > > > and the code below it, outside the loo

Re: [PHPTAL] PHPTAL 1.2.0 alpha - is this a bug or my fail?!

2009-05-14 Thread Kornel Lesiński
It seems that you've used slots where macros would have been more appropriate. This just defines the same slot many times: and the code below it, outside the loop: is run unconditionally, once, after the loop finishes. That's why you're getting error about entry varia

Re: [PHPTAL] PHPTAL 1.2.0 alpha - is this a bug or my fail?!

2009-05-14 Thread Alister Cameron
Thanks Werner and Kornel... I'll fix the omit-tag thing. A silly oversight. Now, I've uploaded the raw and unprocessed template file to: http://www.alistercameron.com/tal.tpl.txt To clarify, this is a file that is compiled in a rather complex way which has to do with how my WordPress theme is bu

Re: [PHPTAL] PHPTAL 1.2.0 alpha - is this a bug or my fail?!

2009-05-14 Thread Kornel Lesiński
On 14-05-2009 at 06:34:11 Alister Cameron wrote: > Could I bother someone to have a look at the processed cache file and > diagnose? > > http://www.alistercameron.com/tal.src.txt This code uses entry variable _after_ the loop (e.g. in id="post-${entry/the_ID}"). Do you have such code in your t

Re: [PHPTAL] PHPTAL 1.2.0 alpha - is this a bug or my fail?!

2009-05-14 Thread Werner
Hi Alister Can you please post the code that assigns the variables to the template object? E.g, If you did the var_dump on $data and $data['entries'] is defined, and you assigned $data to $template like $template->data = $data; ...then I would expect the loop to look like: ...Or did yo

[PHPTAL] PHPTAL 1.2.0 alpha - is this a bug or my fail?!

2009-05-13 Thread Alister Cameron
Gents, Perhaps I should stick to the production version but I hoped to help test the latest alpha. I've encountered an issue where it's not iterating thru a repeat, but I don't see what I'm doing wrong. Could I bother someone to have a look at the processed cache file and diagnose? http://www.al