Give the actual interpolation function a name.
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 19 Dec 2008 10:55:49 +0000 (11:55 +0100)
committerMatthijs 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

index ff888e15979c4f680ee0e3def297a77141859c76..9810785109f6e1ae628a64f81f333cd38d0a1003 100644 (file)
@@ -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 {