Probably you have to try the <%text> tag
http://www.makotemplates.org/docs/syntax.html#syntax_tags_text

On 08/10/2010 06:55 PM, James McManus wrote:
I'm using pylons, and want to create a mako template that has a
javascript function with mako script in it. Something like:

<script type="text/javascript">
      $(window).ready(function(){
        % for image in images:
           $("${imagen}").draggable({helper:'original', handle:'.drag'});
        % endfor

Is this possible? I get an error, telling me endfor is undefined, with
the above script.

Thanks
Jim

--
You received this message because you are subscribed to the Google
Groups "pylons-discuss" 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/pylons-discuss?hl=en.

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en.

Reply via email to