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
 def render_slots(self,context,data):
     for name,value in data.items():
         context.fillSlots(name, value)
     return context.tag
示例#5
0
 def render_template(self, context, data):
     context.fillSlots('maincontent', Fragment())
     return context.tag
示例#6
0
 def render_row(context, data):
     context.fillSlots('english', data[0])
     context.fillSlots('french', data[1])
     return context.tag