Diff

mod_http_index/http_index.html @ 3336:4af114684e0a

mod_http_index: Allow listed modules to include a friendlier name Example: ``` module:provides("http", { name = "demo"; title = "Demo HTTP Module"; route = { GET = function() return "Hello"; end; }; }); ```
author Kim Alvefur <zash@zash.se>
date Thu, 27 Sep 2018 17:13:10 +0200
parent 3335:04fe2b41da91
child 3927:4c1f80076606
line wrap: on
line diff
--- a/mod_http_index/http_index.html	Thu Sep 27 16:56:44 2018 +0200
+++ b/mod_http_index/http_index.html	Thu Sep 27 17:13:10 2018 +0200
@@ -33,7 +33,7 @@
 <div class="content">
 <nav>
 <ul>{items#
-<li><a href="{item.url}" title="{item.module}">{item.name}</a></li>}
+<li><a href="{item.url}" title="{item.module}">{item.title?{item.name}}</a></li>}
 </ul>
 </nav>
 </div>