Implement loading lua from separate files via @
This commit is contained in:
@@ -60,7 +60,7 @@ func ProcessJSON(content string, command utils.ModifyCommand, filename string) (
|
||||
processJSONLogger.Debug("Set JSON data as Lua global 'data'")
|
||||
|
||||
// Build and execute Lua script for JSON mode
|
||||
luaExpr := BuildJSONLuaScript(command.Lua)
|
||||
luaExpr := BuildJSONLuaScript(command.Lua, command.SourceDir)
|
||||
processJSONLogger.Debug("Built Lua script from expression: %q", command.Lua)
|
||||
processJSONLogger.Trace("Full Lua script: %q", utils.LimitString(luaExpr, 200))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user