aboutsummaryrefslogtreecommitdiff
path: root/src/badge-gen.lua
blob: cde1a47106f3acd5fc9e34194701bbe2a375628e (plain)
1
2
3
4
5
6
7
8
9
local path = "./badges/"
local badges = io.popen("dir "..path)
if badges then
  for i in badges:read("*a"):gmatch("(.-)\n") do 
    for w in i:gmatch("%S+") do 
      io.write("<img alt='"..path..w.."' src='"..path..w.."'>"); 
    end 
  end
end