source: base.py@ 4

Last change on this file since 4 was 4, checked in by JohnLightfoot, 10 years ago

initial import

File size: 526 bytes
Line 
1from __future__ import absolute_import
2
3from collections import defaultdict
4import os
5import pprint
6import xlrd
7
8from mako.template import Template
9
10class Base:
11 """
12 """
13
14 @staticmethod
15 def render(context):
16 print 'base.render'
17 link = os.path.join(context['dirname'], 't2-1-%s.html' % context['result'][0])
18 with open(link, 'w') as f:
19 t2_1 = Template(filename='t2-1empty.template')
20 f.write(t2_1.render(**context))
21
22 return os.path.basename(link)
23
Note: See TracBrowser for help on using the repository browser.