From 7ed7af38dbffa0528547b1c7e8ebdbe6e78a2b26 Mon Sep 17 00:00:00 2001 From: Jason Perkins Date: Wed, 4 Feb 2015 19:19:16 -0500 Subject: [PATCH] Allow action path variable maps to use functions as replacement values --- src/base/detoken.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/base/detoken.lua b/src/base/detoken.lua index d3f60763..a89d903a 100644 --- a/src/base/detoken.lua +++ b/src/base/detoken.lua @@ -75,6 +75,9 @@ if varMap[token] then result = varMap[token] + if type(result) == "function" then + result = result(environ) + end end -- If the result is an absolute path, and it is being inserted into