projects
/
invirt/packages/invirt-base.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* added `mako` program for processing templates in invirt packages
[invirt/packages/invirt-base.git]
/
files
/
usr
/
bin
/
mako
1
#!/usr/bin/env python
2
3
from sys import argv
4
from mako.template import Template
5
from invirt.common import with_closing
6
7
for inpath in argv:
8
@with_closing(file(splitext(inpath)[0], 'w'))
9
def render(f): print >> f, Template(filename = inpath).render()