On 10/21/12, Olemis Lang <[email protected]> wrote:
> On 10/21/12, Roberto Longobardi <[email protected]> wrote:
>
[...]
>> the following works well for javascript conditional include.
>>
>> Let's say you wish to include test1.js and/or test2.js based on a test1
>> and
>> test2 boolean values:
>>
>> 1) Inside your request handler:
>> data = {}
>> data['test1'] = True
>> data['*test2*'] = *False*
>>
>> return 'testolemis.html', data, None
>>
>
> ... this is exactly what I'm trying to avoid because it's a generic
> template that will be <xi:include />'ed inside the body of may other
> templates and reused many times , hence
>
> 1. I want all this to happen transparently for request
> handlers (... or filters ...) without handler global data
> being involved .
> 2. I'd prefer to make this happen as ootb as possible ;)
>
<forgotten>
3. I'd like not to include the same file(s) once again
if they've been already included .
</forgotten>
[...]
--
Regards,
Olemis.
Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/
Featured article:
--
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?hl=en.