[z3-five] (re)using zpt macros from view page templates
Andreas Jung
lists at zopyx.com
Sun Jan 28 14:41:32 CET 2007
--On 28. Januar 2007 13:30:37 +0000 Chris Withers <chris at simplistix.co.uk>
wrote:
> Andreas Jung wrote:
>>
>>> I have a page template that's being used for Five view. I now want to
>>> re-use part of that template as a zpt macro in another Five view.
>>>
>>> How should I go about doing this?
>>
>> By registering the template with the macros as views?
>
> Is that the canonical way? it seems pretty heavyweight in terms of
> instantiating a whole view, with request and all, just to get a macro...
>
Isn't it sufficient to register the template through ZCML?
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://codespeak.net/pipermail/z3-five/attachments/20070128/ba3733d7/attachment.pgp
More information about the z3-five
mailing list