local navigation_table = { {'home', '/index.html'}, {'projects', '/projects/'}, {'git', '/git'}, {'about', '/about.html'}, } local navlinks = '' for _, link in pairs(navigation_table) do navlinks = navlinks .. string.format('%s ', link[2], link[1]) end navlinks = string.sub(navlinks, 1, -4) local navigation = string.format('
', navlinks) return function(html, page_tbl) local html = string.gsub( html, '