Hi Annet,
you can't have double nested template language code, which is the end
result of inserting a piece of a template in a view using template
language.
The template gets parsed into python code before it is executed, so:
{{=XML(content.content)}}
will insert the piece of the template as requested but that template
language code in there will not be parsed a second time, which is why
you are getting as it is.
Include can not be used directly since it currently tries to locate
the file in the path given the filename and it does not accept a file-
like object ala stringio.
Would it be a good idea to have this possibility Massimo? The patch
seems easy.
One way to obtain the desired result would be to write content.content
out to an html file in the views folder and instead of:
{{=XML(content.content)}}
have :
{{include 'content_file.html')}}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---