leaflet client: support for multiple module-specific templates (addresses follow-up to #1206)