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

Re: [PHPTAL] not working - expected behaviour?

2010-05-05 Thread Marco Pivetta
Works fine now :) Thank you! Marco Pivetta - Ocramius Aethril http://twitter.com/Ocramius 2010/5/5 Kornel Lesiński > On 05-05-2010 at 10:20:28 Marco Pivetta wrote: > > So I'm forced to set XML only, right? >> > > By default PHPTAL works in XHTML mode, and in this mode (as well as > , , etc.)

Re: [PHPTAL] not working - expected behaviour?

2010-05-05 Thread Kornel Lesiński
On 05-05-2010 at 10:20:28 Marco Pivetta wrote: So I'm forced to set XML only, right? By default PHPTAL works in XHTML mode, and in this mode (as well as , , etc.) gets special handling and is always empty. If you're generating non-XHTML XML, then set PHPTAL to generate arbitrary XML: $

Re: [PHPTAL] not working - expected behaviour?

2010-05-05 Thread Marco Pivetta
So I'm forced to set XML only, right? Marco Pivetta - Ocramius Aethril http://twitter.com/Ocramius 2010/5/5 Murat Çorlu > Meta tags don't have content actually. Maybe this is about that situation. > > Murat Corlu > > > On 05/05/2010 12:09 PM, Marco Pivetta wrote: > > I just noticed that the t

Re: [PHPTAL] not working - expected behaviour?

2010-05-05 Thread Murat Çorlu
Meta tags don't have content actually. Maybe this is about that situation. Murat Corlu On 05/05/2010 12:09 PM, Marco Pivetta wrote: I just noticed that the templating engine is not displaying the content of my tags in this piece of code: tal:attributes and tal:repeat are working, but

[PHPTAL] not working - expected behaviour?

2010-05-05 Thread Marco Pivetta
I just noticed that the templating engine is not displaying the content of my tags in this piece of code: tal:attributes and tal:repeat are working, but tal:content is not even fired! I've tried with tal:content="php:var_dump(meta)", which should directly write to t