On Feb 2, 3:38 pm, "Ilias Lazaridis" <[EMAIL PROTECTED]> wrote:
> I would like to provide a wiki template in order to include the
> TracNav Macro (and some others) by default.
>
> Is there any mechanism available to call macros from within templates?
I've implemented this based on a workaround, using
46 <div py:if="chrome.nav['tracnav']">
47 ${wiki_to_html('[[TracNav]]')}
48 </div>
http://dev.lazaridis.com/base/changeset/189
-
But this functionality should be provided somehow from within trac:
http://trac.edgewall.org/ticket/4660
-
as a side-question: How can I ask in the template, if one component is
enabled?
Something like:
<div py:if="tracx.menue.MyComponent.enabled">
.
--
http://dev.lazaridis.com/base
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---