# HG changeset patch # User Kim Alvefur # Date 1728418621 -7200 # Node ID 28b386fc7a057f9d3c3ffaa912c485f9c50a8c55 # Parent 1bb8b559f4412f2356e615e9b2f168170d57dbf1 mod_http_index: Add metadata to enable installation with plugin installer diff -r 1bb8b559f441 -r 28b386fc7a05 mod_http_index/README.markdown --- a/mod_http_index/README.markdown Thu Oct 03 22:29:03 2024 +0200 +++ b/mod_http_index/README.markdown Tue Oct 08 22:17:01 2024 +0200 @@ -1,3 +1,13 @@ +--- +summary: Generate an index of local HTTP services +labels: +- Stage-Beta +rockspec: + build: + copy_directories: + - html +--- + Introduction ============ diff -r 1bb8b559f441 -r 28b386fc7a05 mod_http_index/html/http_index.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mod_http_index/html/http_index.html Tue Oct 08 22:17:01 2024 +0200 @@ -0,0 +1,54 @@ + + + + + + + +{title} + + + +
+

Prosody IM

+

HTTP Services

+
+
+
+ +
+
+ + + diff -r 1bb8b559f441 -r 28b386fc7a05 mod_http_index/http_index.html --- a/mod_http_index/http_index.html Thu Oct 03 22:29:03 2024 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,54 +0,0 @@ - - - - - - - -{title} - - - -
-

Prosody IM

-

HTTP Services

-
-
-
- -
-
- - - diff -r 1bb8b559f441 -r 28b386fc7a05 mod_http_index/mod_http_index.lua --- 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