Mercurial > prosody-modules
diff mod_http_index/mod_http_index.lua @ 5971:9db6bad7cc36
merge
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Wed, 16 Oct 2024 09:30:02 -0500 |
| parents | a1aa56ebe73f |
| children |
line wrap: on
line diff
--- a/mod_http_index/mod_http_index.lua Tue Oct 08 10:24:39 2024 -0500 +++ b/mod_http_index/mod_http_index.lua Wed Oct 16 09:30:02 2024 -0500 @@ -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", "html/" .. module.name .. ".html"); + template_file = assert(io.open(template_file)); base_template = template_file:read("*a"); template_file:close(); end
