Does anyone know if there's a way to render a view inside another
view?  This method gives me the html I would like:

{{
form=search_form()
rows=[]
}}
{{include 'default/search.html'}}

But I'd really rather do something like this because it seems more
correct:

{{=response.render('default/search.html', form=search_form(), rows=
[])}}

Unfortunately, the second method escapes all the html.  From what I
understand, using the XML function to unescape it is considered a
security issue.

Is there any way to include another view file and explicitly pass its
local variables to it?

Thanks,
Brian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to