aboutsummaryrefslogtreecommitdiff
path: root/src/badge-gen.lua
blob: e2be96d87c27fe588b48b5fa84c8604bb40493ee (plain)
1
2
3
4
5
6
7
local path = "./badges/"
local badges = io.popen("ls "..path)
if badges then
  for i in string.gmatch(badges:read("*a"), "(.-)\n") do
    io.write("<img alt=\""..path..i.."\" src=\""..path..i.."\">");
  end
end