On Monday 02 February 2009 05:46:04 Chen Houwu wrote:
> I want to use curl (http://www.curl.com/)  in a tg2 project.
> To pass python variable in curl, I want to use text template which
> generate curl source code.

Gosh, what an ugly lanugage... Besides, are you sure you want to generate 
source-code for this purpose? Wouldn't some sort of IPC be much better?

> How to do?
>
> currently, in the quickstart project,  I find only xml template is
> recognized.

This is surely an ommission, but I'm not sure if to add that as a feature is 
going to be available soon. You might consider creating a ticket for it.

However, you can always use 

@expose()
def controller(self):
      template = TextTemlpate()
      ...


Or you go with MAKO for this usecase. After all, it's not so much different 
for text-templating.

Diez

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