예제 #1
0
파일: reporter.py 프로젝트: lhagan/AWStatic
 def _interpolate_in_index_html(self):
     """Replace dynamic content in ``index.html``."""
     path = os.path.join(self.out_dir, 'index.html')
     with open(path) as fp:
         content = fp.read()
     today = strftime('%d %B %Y')
     content = interpolate(content, last_update=today)
     with open(path, 'w+') as fp:
         fp.write(content)
예제 #2
0
 def _interpolate_in_index_html(self):
     """Replace dynamic content in ``index.html``."""
     path = os.path.join(self.out_dir, 'index.html')
     with open(path) as fp:
         content = fp.read()
     today = strftime('%d %B %Y')
     content = interpolate(content, last_update=today)
     with open(path, 'w+') as fp:
         fp.write(content)
예제 #3
0
 def _call_fut(self, s, **bindings):
     from awstatic.utils import interpolate
     return interpolate(s, **bindings)
예제 #4
0
 def _call_fut(self, s, **bindings):
     from awstatic.utils import interpolate
     return interpolate(s, **bindings)