Comparison

mod_conversejs/mod_conversejs.lua @ 3038:48cbf6a3f112

mod_conversejs: Make HTML more well-formed
author Kim Alvefur <zash@zash.se>
date Sat, 07 Apr 2018 14:32:50 +0200
parent 2998:719b76ee0578
child 3039:df77580be2f0
comparison
equal deleted inserted replaced
3037:bae7b0a002ef 3038:48cbf6a3f112
9 module:depends("websocket"); 9 module:depends("websocket");
10 end); 10 end);
11 11
12 local template = [[ 12 local template = [[
13 <!DOCTYPE html> 13 <!DOCTYPE html>
14 <html>
15 <head>
14 <meta charset="utf-8"> 16 <meta charset="utf-8">
15 <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/%s.min.css"> 17 <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/%s.min.css">
16 <script charset="utf-8" src="https://cdn.conversejs.org/dist/converse.min.js"></script> 18 <script charset="utf-8" src="https://cdn.conversejs.org/dist/converse.min.js"></script>
17 <body><script>converse.initialize(%s);</script> 19 </head>
20 <body><script>converse.initialize(%s);</script></body>
21 </html>
18 ]] 22 ]]
19 23
20 local more_options = module:get_option("conversejs_options"); 24 local more_options = module:get_option("conversejs_options");
21 25
22 module:provides("http", { 26 module:provides("http", {