Hi,

I've been trying to use amps in links in a TurboGears+Kid app, but
until now, no success. I've tried different forms, like:
controllers.py:
  return dict(from_date=kw["from"], to_date=["to"])

report_show.kid:
  <img src="/report/?from=${from_date}&to=${to_date}" />
(syntax error)

or report_show.kid:
<?python
url = "/report/?from="+from_date+"&to="+to_date
attrs = "src":url
?>

<img py:attrs="attrs" />

or controllers.py:
img = "<img src=\"/report/?from="+from_date+"&to="+to_date+"\" />
return dict(img=img)

report_show.kid:
${XML(img)}

Anybody has any idea?
Thanks,

Bernardo


_______________________________________________
kid-template-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kid-template-discuss

Reply via email to