Comparison

plugins/mod_http_errors.lua @ 11155:8d692a8a8f48

mod_http_errors: Remove 'extra' element when empty
author Kim Alvefur <zash@zash.se>
date Mon, 12 Oct 2020 18:27:42 +0200
parent 11154:dd81a318a794
child 11388:60a61c509d87
comparison
equal deleted inserted replaced
11154:dd81a318a794 11155:8d692a8a8f48
55 </style> 55 </style>
56 </head> 56 </head>
57 <body> 57 <body>
58 <h1>{title}</h1> 58 <h1>{title}</h1>
59 <p>{message}</p> 59 <p>{message}</p>
60 <p class="extra">{extra?}</p> 60 {extra&<p class="extra">{extra?}</p>}
61 </body> 61 </body>
62 </html> 62 </html>
63 ]]; 63 ]];
64 64
65 local function get_page(code, extra) 65 local function get_page(code, extra)