Implement loading lua from separate files via @
This commit is contained in:
@@ -428,7 +428,7 @@ func ProcessXML(content string, command utils.ModifyCommand, filename string) ([
|
||||
processXMLLogger.Debug("Set XML data as Lua global 'root'")
|
||||
|
||||
// Build and execute Lua script
|
||||
luaExpr := BuildJSONLuaScript(command.Lua) // Reuse JSON script builder
|
||||
luaExpr := BuildJSONLuaScript(command.Lua, command.SourceDir) // Reuse JSON script builder
|
||||
processXMLLogger.Debug("Built Lua script from expression: %q", command.Lua)
|
||||
|
||||
if err := L.DoString(luaExpr); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user