assign it in java - just expect {{ variable_x }} to get replaced with
whatever you've pushed into the context from the view...

i.e.

<script>
var x = {{ variable_x }}
...
</script>

On 2/6/07, damacy <[EMAIL PROTECTED]> wrote:
>
>
> hi, there.
>
> i'm a writing a template with a section of javascript code in it. i
> need to use django variables in the script and just wondering how i
> can do it.
>
> i tried
> <script>
> {{ variable_x }}
> </script>
>
> but it does not seem to work.
>
> has anyone any clue?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to