Software /
code /
prosody-modules
Diff
mod_http_index/mod_http_index.lua @ 5995:28b386fc7a05
mod_http_index: Add metadata to enable installation with plugin installer
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 08 Oct 2024 22:17:01 +0200 |
parent | 3756:ba4f45b8678f |
child | 5996:a1aa56ebe73f |
line wrap: on
line diff
--- a/mod_http_index/mod_http_index.lua Thu Oct 03 22:29:03 2024 +0200 +++ b/mod_http_index/mod_http_index.lua Tue Oct 08 22:17:01 2024 +0200 @@ -7,8 +7,8 @@ local base_template; do - local template_file = module:get_option_string(module.name .. "_template", module.name .. ".html"); - template_file = assert(module:load_resource(template_file)); + local template_file = module:get_option_path(module.name .. "_template", module.name .. ".html", "html"); + template_file = assert(io.open(template_file)); base_template = template_file:read("*a"); template_file:close(); end