1 |
bytegw |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-lib-1.18.0/root/etc/e-smith/events/actions/generic_template_expand mezzanine_patched_e-smith-lib-1.18.0/root/etc/e-smith/events/actions/generic_template_expand |
2 |
|
|
--- e-smith-lib-1.18.0/root/etc/e-smith/events/actions/generic_template_expand 2007-10-31 15:56:47.000000000 -0400 |
3 |
|
|
+++ mezzanine_patched_e-smith-lib-1.18.0/root/etc/e-smith/events/actions/generic_template_expand 2007-10-31 15:53:58.000000000 -0400 |
4 |
|
|
@@ -52,18 +52,10 @@ |
5 |
|
|
# processTemplate args, then expand the template |
6 |
|
|
s/^\.//; |
7 |
|
|
$filename = $_; |
8 |
|
|
- %args = ( |
9 |
|
|
+ warn "expanding $filename\n"; |
10 |
|
|
+ esmith::templates::processTemplate({ |
11 |
|
|
MORE_DATA => { EVENT => $event }, |
12 |
|
|
TEMPLATE_PATH => $filename, |
13 |
|
|
OUTPUT_FILENAME => $filename, |
14 |
|
|
- ); |
15 |
|
|
- open(FILE, "${templates_dir}${filename}"); |
16 |
|
|
- while (<FILE>) |
17 |
|
|
- { |
18 |
|
|
- ($param, $value) = split(/=/, $_, 2); |
19 |
|
|
- $args{$param} = eval $value; warn $@ if $@; |
20 |
|
|
- } |
21 |
|
|
- close(FILE); |
22 |
|
|
- warn "expanding $filename\n"; |
23 |
|
|
- esmith::templates::processTemplate(\%args); |
24 |
|
|
+ }); |
25 |
|
|
} |