Cleaned up the code from plugin_utils

This commit is contained in:
MatteoBiscosi 2022-02-11 11:55:34 +01:00
parent f1e8091928
commit 57a85de50e
105 changed files with 620 additions and 918 deletions

View file

@ -39,7 +39,7 @@ end
-- @return Rendered templates in a table whose keys are hook names and whose values are rendered templates.
function check_template:render(hooks_conf)
local res = {}
local plugins_utils = require "plugins_utils"
local script_manager = require "script_manager"
-- check if the input_builder is defined
-- TODO: define empty template for the checks without input_builder/template
@ -55,7 +55,7 @@ function check_template:render(hooks_conf)
if hook_conf then
res[#res + 1] = {
hook = hook, -- Hook Name
template = plugins_utils.renderTemplate(self._check.plugin.key, self._check.gui.input_builder..".template", {
template = script_manager.renderTemplate(self._check.script.key, self._check.gui.input_builder..".template", {
hook_conf = hook_conf,
hook_name = hook,
check = self._check