Hi,

On 2011-11-26 11:40 AM, Kr Ace Kumar Ramaraju wrote:
>>template = env.get_template("page_content.html")

>>parsed_content = env.parse(template)
Yeah, that would attempt to convert template into a unicode string and parse that. Do this:

template_source = env.loader.get_source(env, 'page_content.html')[0]
parsed_content = env.parse(template_source)


Regards,
Armin

--
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" 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/pocoo-libs?hl=en.

Reply via email to