Re: [PHPTAL] metal slots and repeats in metal macros

2010-05-05 Thread Robert Goldsmith
Ah, ok. I was hoping a slot would work for me but yes, using another macro will work exactly as I need it to :) Thanks, robert On 5 May 2010, at 14:50, Kornel Lesiński wrote: > On 05-05-2010 at 14:26:08 Robert Goldsmith wrote: > >> Just a quick one. Could someone tell me how to reference a v

Re: [PHPTAL] metal slots and repeats in metal macros

2010-05-05 Thread Kornel Lesiński
On 05-05-2010 at 14:26:08 Robert Goldsmith wrote: Just a quick one. Could someone tell me how to reference a variable defined within a metal macro from within a slot? You can't. Slots aren't filled on demand, but in advance before the macro is called (slot in a loop would repeat the same c

[PHPTAL] metal slots and repeats in metal macros

2010-05-05 Thread Robert Goldsmith
Hi all, Just a quick one. Could someone tell me how to reference a variable defined within a metal macro from within a slot? In particular, I'd like to define a macro that generates a calendar grid of days and then use a slot to provide varying content to be rendered within the 'day' cells. I