Hey thanks jm i should have thought of that. On 12/02/2008, JM Ibanez <[EMAIL PROTECTED]> wrote: > > On Tue, Dec 2, 2008 at 1:19 PM, Brian <[EMAIL PROTECTED]> wrote: >> >> I want to pass straight template text as a string to the templating >> engine and get it rendered. How can I achieve this? > > You may want to read the Django docs for this: > http://docs.djangoproject.com/en/dev/ref/templates/api/ > > You can also simply create a Template object with the template string > passed in the constructor: > http://www.djangobook.com/en/1.0/chapter04/ > > Example: > from django.template import Template, Context > t = Template('my template here: {{ somevar }}') > c = Context({somevar : 'hello, world!'}) > output = t.render(c) > -- > JM Ibanez -- > > The worst government is often the most moral. One composed of cynics > is often very tolerant and humane. But when fanatics are on top there > is no limit to oppression. > -- H. L. Mencken > > ----- > http://www.livejournal.com/~jmibanez/ > http://www.mycgiserver.com/~butiki/ > > > >
-- Xavier A. Mathews Student/Browser Specialist/Developer/Web-Master Google Group Client Based Tech Support Specialist Hazel Crest Illinois [EMAIL PROTECTED]@[EMAIL PROTECTED] "Fear of a name, only increases fear of the thing itself." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---