-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wilson,

Are you referring to rendering JS with template tags, or actual
template tags in JS?

In the first case, you use them like any other template tag.
The second case is only possible if there is some JS library that uses
Django-like templates.

Luke

On Fri, Aug 7, 2009 at 10:31 PM, WilsonOfCanada wrote:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkp85c8ACgkQXQrGVCncjPyvtACfdp1MNDbfcA4FVXCEBA6vAlAs
NGgAnjlGepehXauPkVf20eW2wGtKiqfa
=29IC
-----END PGP SIGNATURE-----

>
> Hellos,
>
> I was wondering how to use {{ }} variables in javascript functions.
>
> ex. onchange = "changeArea({{ mooman |safe|escapejs}});"
>
> Thanks
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to