source: trunk/packages/sipb-xen-base/files/usr/bin/mako @ 882

Last change on this file since 882 was 882, checked in by y_z, 16 years ago
  • added mako program for processing templates in invirt packages
  • Property svn:executable set to *
File size: 257 bytes
Line 
1#!/usr/bin/env python
2
3from sys import argv
4from mako.template import Template
5from invirt.common import with_closing
6
7for inpath in argv:
8    @with_closing(file(splitext(inpath)[0], 'w'))
9    def render(f): print >> f, Template(filename = inpath).render()
Note: See TracBrowser for help on using the repository browser.