Virtualmin plugin API - how to use get_template in feature_setup function?


I am working on Virtualmin plugin to have a configurable server options in Plugin Options page.
The documentation claims, that I can access my template_imput parameters with get_template function (see:

However I get an error message:
Undefined subroutine &nginx::get_template called at /usr/share/webmin/nginx/

I have used:
local $tmpl = &get_template($_[0]->{‘template’});

What would be the correct way to access my parameter?

You will need to use &virtual_server::get_template , as that function is defined in the Virtualmin (virtual-server) module.