% local form, viewlibrary, page_info = ... require("viewfunctions") %> <% if form.value.result then local func = haserl.loadfile(page_info.viewfile:gsub("searchdevices", "listdevices")) func(form.value.result, viewlibrary, page_info, session) end %>