projects
/
matthijs
/
upstream
/
blosxom-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18f5352
)
Give the actual interpolation function a name.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Fri, 19 Dec 2008 10:55:49 +0000
(11:55 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Fri, 19 Dec 2008 10:55:49 +0000
(11:55 +0100)
The interpolate function returns a reference to the actual interpolation
function. This was previously an anonymous function. By naming it, other
plugins can use the code as well.
general/interpolate_fancy
patch
|
blob
|
history
diff --git
a/general/interpolate_fancy
b/general/interpolate_fancy
index ff888e15979c4f680ee0e3def297a77141859c76..9810785109f6e1ae628a64f81f333cd38d0a1003 100644
(file)
--- a/
general/interpolate_fancy
+++ b/
general/interpolate_fancy
@@
-96,7
+96,10
@@
sub _resolve_nested {
sub interpolate {
- return sub {
+ return \&interpolate_fancy::do_interpolate;
+}
+
+sub do_interpolate {
package blosxom;
@@
-145,7
+148,6
@@
sub interpolate {
return $template;
- };
}
sub _test {