romtek | 4 Dec 2011 19:06
Picon

Documentation needs updating about tal:on-error

>From the current description, it's not clear that if a specified macro isn't found, an exception could be suppressed too. I had to find this out by running an experiment. So, I think the documentation should be updated.

<tal:block metal:use-macro="${macroFileName}/pageSpecificHeadPlaceholder" tal:on-error=""></tal:block>

I've picked up this trick from ASPX files I've recently had to maintain. This allows me to specify page specific additions to the head section within page macros.

_______________________________________________
PHPTAL mailing list
PHPTAL@...
http://lists.motion-twin.com/mailman/listinfo/phptal
Kornel Lesiński | 5 Dec 2011 21:19
Gravatar

Re: Documentation needs updating about tal:on-error

On Sun, 04 Dec 2011 18:06:08 -0000, romtek <romtek@...> wrote:

>> From the current description, it's not clear that if a specified macro
> isn't found, an exception could be suppressed too. I had to find this out
> by running an experiment. So, I think the documentation should be  
> updated.

Thanks for suggestion, I've rewritten that bit.

--

-- 
regards, Kornel Lesiński

Gmane