hello all,

I try using dojo toolkit (http://www.dojotoolkit.org/) with Mako template in
pylons. There is a problem since mako and dojo share same template ( ${ } ).
if in javascript function I have code like this:

<script type="text/javascript">
  .....
  var result = ...
  var node = dojo.byId("mynode");
  node.innerHTML =
    dojo.string.substitute("<a href='${url}'>${title}</a>", result);
  .....
</script>

pylons will treat the '${url}' as Mako template, and an
NameError("Undefined") raised

is there any suggestions for that ?

thank you,

heru - indonesia

--~--~---------~--~----~------------~-------~--~----~
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