gen_app_html: pass a URI to loadTemplate, not a path