source:
trunk/packages/sipb-xen-base/files/usr/bin/mako
@
884
Last change on this file since 884 was 884, checked in by y_z, 16 years ago | |
---|---|
|
|
File size: 286 bytes |
Line | |
---|---|
1 | #!/usr/bin/env python |
2 | |
3 | from os.path import splitext |
4 | from sys import argv |
5 | from mako.template import Template |
6 | from invirt.common import with_closing |
7 | |
8 | for inpath in argv: |
9 | @with_closing(file(splitext(inpath)[0], 'w')) |
10 | def render(f): print >> f, Template(filename = inpath).render() |
Note: See TracBrowser
for help on using the repository browser.