Software /
code /
prosody-modules
Diff
mod_http_index/mod_http_index.lua @ 5999:9db6bad7cc36
merge
author | Stephen Paul Weber <singpolyma@singpolyma.net> |
---|---|
date | Wed, 16 Oct 2024 09:30:02 -0500 |
parent | 5996:a1aa56ebe73f |
child | 6211:750d64c47ec6 |
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