[Twisted-web] Nested templates?

weeti weeti at usr.fi
Thu Jul 7 14:04:08 MDT 2005



Hi, what do you mean by nested templates, if I have understood it  
correctly you need a way to have a single renderer rendering another  
template inside it? and am i correct that you are using nevow?

if so, i use like this


template...
<n:invisible n:render="page"/>

code
def render_page(self, ctx, data):
    ctx.tag(render=loaders.xmlfile('anothertemplate'))

dunno if this is what you asked for.

On 07/07/05 19:22:26, Alberto Trujillo wrote:
> There is any way to use nested templates without mix the python code  
> with the html code.
> I know, that I could solve this problem using Stan, or just writing  
> html code inside the python file and after display what I want.
> But that are exactly the option that I can't use. I have to nest the  
> template keeping the html code and the python code in different file.
> If some body can give a example, a tutorial, a address, o something  
> that can help me, I'll be very pleasant.
> 
> Thank you very much
> 
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
> 
> 
> 




More information about the Twisted-web mailing list