From b462f96afce66566689b86180abdca0e8f86f0dd Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 19 Dec 2008 11:55:49 +0100 Subject: [PATCH] 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. --- general/interpolate_fancy | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 { -- 2.30.2