Noah Kantrowitz wrote:
> Sorry, looks like Alec took that bit of hackery out. The way
> ClearSilver looks for templates is by examining each folder in the
> 'hdf.loadpaths' HDF variable. Normally the project templates folder
> and the central templates folder are the first two items in this
> list, with plugin folders being added below that. If you munged this
> list so your folder appears first, you can mask out other templates.
I understand.
This would have the benefit to work with *.cs includes, too.
But I dislike to change the behaviour, as this could have side-effects
(e.g. on other plugins which work in a tricky way with the hdf).
Any other Idea?
> As a probably much cleaner way to do it, you can just make a request
> filter that does something like this:
> {{{
> def post_process_request(self, req, template, content_type):
> if template == 'wiki.cs':
> template = 'mytemplate.cs'
> return (template, content_type)
> }}}
this one works fine (except with *.cs includes)
.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Users" 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-users
-~----------~----~----~----~------~----~------~--~---