From: Martin Mares Date: Mon, 30 Mar 2015 19:43:33 +0000 (+0200) Subject: Added T::arg() which allows to access template arguments in Perl code X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=44846845f45c84d1921eb8e95fc0ab9f34c20779;p=temple.git Added T::arg() which allows to access template arguments in Perl code --- diff --git a/UCW/Temple.pm b/UCW/Temple.pm index e1a21e3..3854e3d 100644 --- a/UCW/Temple.pm +++ b/UCW/Temple.pm @@ -237,4 +237,8 @@ sub load { return; } +sub arg { + return $UCW::Temple::arguments->{$_[0]}; +} + 1;