Diff

mod_conversejs/mod_conversejs.lua @ 4165:6b2a1c9ef6e2

mod_conversejs: Move templates into a directory for easier install
author Kim Alvefur <zash@zash.se>
date Thu, 01 Oct 2020 17:49:10 +0200
parent 4153:4ee2a90d3818
child 4176:0016618e0975
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua	Thu Oct 01 16:20:09 2020 +0200
+++ b/mod_conversejs/mod_conversejs.lua	Thu Oct 01 17:49:10 2020 +0200
@@ -48,7 +48,7 @@
 local html_template;
 
 do
-	local template_filename = module:get_option_string(module.name .. "_html_template", "template.html");
+	local template_filename = module:get_option_string(module.name .. "_html_template", "templates/template.html");
 	local template_file, err = module:load_resource(template_filename);
 	if template_file then
 		html_template, err = template_file:read("*a");
@@ -65,7 +65,7 @@
 
 local js_template;
 do
-	local template_filename = module:get_option_string(module.name .. "_js_template", "template.js");
+	local template_filename = module:get_option_string(module.name .. "_js_template", "templates/template.js");
 	local template_file, err = module:load_resource(template_filename);
 	if template_file then
 		js_template, err = template_file:read("*a");