in this case i recommend doing something like this:
#####
from turbokid.kidsupport import KidSupport
tkid = KidSupport()
template_name = "myproject.templates.produce-fancy-list"
rendered = tkid.render(dict(a='b', b='c',...) ,
template=template_name, format='html', fragment=True)
js_string = """
var s = '%s'
document.write(s);
""" % rendered
return js_string
#####
not tested - but i do similar things to produce pdf files from
templates.
HTH,
Frank
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---