Exemple #1
0
 def render(self):
     logger.info('Rendering %r' % self)
     # workaround for a dumb bug
     # no ideas why but all tag templates contain same self inside
     self.template.globals['entry'] = self
     path = self.get_dest()
     makedirs(op.dirname(path))
     open(path, 'wt', encoding='utf-8').write(self.template.render())
Exemple #2
0
 def render(self):
     logger.info('Rendering %r' % self)
     # workaround for a dumb bug
     # no ideas why but all tag templates contain same self inside
     self.template.globals['entry'] = self
     path = self.get_dest()
     makedirs(op.dirname(path))
     file(path, 'w').write(self.template.render().encode('utf-8'))
Exemple #3
0
 def render(self):
     logger.info('Copying untouchable file %r' % self)
     destpath = self.get_dest()
     makedirs(op.dirname(destpath))
     shutil.copyfile(self.path, destpath)