On 30 Nov 2007, at 12:51 pm, Manakel wrote:
>
> Currently, i would like to render some part of my template using a
> javascript utilities "myrender.js"
>
> I was thinking of doing the thing clean by creating a dedicated
> template tag: "jsrender".
>
> Now the question is:
>
> Should i
> a) let the designer perform an include for "myrender.js" in each
> template where he wants to use the "jsrender" tag
> b) incorporate the include "myrender.js" in my template tag
> (this way designer just use the template tag,like any other template
> tag).
>
> If b) is an ok solution, do you know where to find a sample of doing
> so?

We tend to make a block tag (called extrahead) in the head section of  
the base template and then just shove in the javascript lines in that  
block tag where they are needed.

-- 
David Reynolds
[EMAIL PROTECTED]



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to