Hi,

I want to expose some of my method with genshi text template. How can
I do that?

For example:

@expose("myproject.templates.foojavascript.js"):
    # do something here
    return dict(data = "[1, 2, 3]");

foojavascript.js:

var data = ${data}


It might looks like this. I want to do that with TurboGears2, how to
do?

thanks.
Victor Lin.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to