lib/templates: retrieveList method