3
from jinja2 import Template
template = Template('Hello {{ name }}!')
template.render(name='John Doe')

I have entered the above into app engine's interactive console and get no output. How can I get output?

I have tried adding the code I found at the following link to the console, but still no output.

Debug Jinja2 in Google App Engine

Thanks,

Brian in Atlanta

Community
  • 1
  • 1
zerowords
  • 2,915
  • 4
  • 29
  • 44

1 Answers1

5

You forgot to add a print. Try this:

from jinja2 import Template
template = Template('Hello {{ name }}!')
print template.render(name='John Doe')
schuppe
  • 2,033
  • 10
  • 10
  • Perfect. I had tried on the next line "print template" put got info I could not use. Thanks, very much. – zerowords Jun 19 '12 at 15:35