My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
#!/bin/sh
for i in $(ls *.mako);
do
echo "$i""_tmpl"
echo "{{if template_engine == 'mako'}}" > "$i""_tmpl"
cat $i >> "$i""_tmpl"
echo "{{endif}}" >> "$i""_tmpl"
rm "$i"
done

Change log

7c5c6bcefb78 by Gael Pasgrimaud <g...@gawel.org> on Oct 2, 2009   Diff
utils to convert mako templates to paster
template files. fix a small bug in add
form
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 194 bytes, 9 lines
Powered by Google Project Hosting