Can one nest macros with slots?
I can't seem to do this: <use-macro> <fill-slot> <define-macro> <... Some html ...> <define-slot></define-slot> <... Some html ...> </define-macro> </fill-slot> </use-macro> Allowing me to nest multiple reusable templates? I have objects with common interfaces which could easily share templates ... If I could do this! (The shared template still needs to endup in the "master" template). Or are there other techniques to achieve this? Thanks! Jean-François Doyon Internet Service Development and Systems Support / Spécialiste de dèveloppements internet et soutien technique Canada Centre for Remote Sensing/Centre Canadien de télédétection Natural Resources Canada/Ressources Naturelles Canada http://atlas.gc.ca Tel./Tél.: (613) 992-4902 Fax: (613) 947-2410
Doyon, Jean-Francois wrote:
I can't seem to do this:
<use-macro> <fill-slot> <define-macro> <... Some html ...> <define-slot></define-slot> <... Some html ...> </define-macro> </fill-slot> </use-macro>
Allowing me to nest multiple reusable templates?
I have objects with common interfaces which could easily share templates ... If I could do this! (The shared template still needs to endup in the "master" template).
Or are there other techniques to achieve this?
Macros are decided at compile time so that you can ask a template (which is not called) for its macros:: here/main_template/macros/master The code above would have macros being created in some other template at the time this macros is used, and I cannot imagine how they would be available. Why is a macro with whatever uses your common interfaces not suitable? You scenario is too vague for any other advice. --jcc -- Building Websites with Plone http://plonebook.packtpub.com/
participants (2)
-
Doyon, Jean-Francois -
J Cameron Cooper