From: Matthijs Kooijman Date: Fri, 19 Dec 2008 10:55:49 +0000 (+0100) Subject: Give the actual interpolation function a name. X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom-plugins.git;a=commitdiff_plain;h=b462f96afce66566689b86180abdca0e8f86f0dd Give the actual interpolation function a name. 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. --- diff --git a/general/interpolate_fancy b/general/interpolate_fancy index ff888e1..9810785 100644 --- 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 {