def render_template(self,context,data):
     context.fillSlots('maincontent', Fragment())
     return context.tag
 def render_row(context, data):
     context.fillSlots('english', data[0])
     context.fillSlots('french', data[1])
     return context.tag
예제 #3
0
 def render_slots(self, context, data):
     for name, value in data.items():
         context.fillSlots(name, value)
     return context.tag
예제 #4
0
 def render_slots(self,context,data):
     for name,value in data.items():
         context.fillSlots(name, value)
     return context.tag
예제 #5
0
파일: test_rend.py 프로젝트: schwabe/nevow
 def render_template(self, context, data):
     context.fillSlots('maincontent', Fragment())
     return context.tag
예제 #6
0
파일: test_rend.py 프로젝트: schwabe/nevow
 def render_row(context, data):
     context.fillSlots('english', data[0])
     context.fillSlots('french', data[1])
     return context.tag