Sigrid Solveig Haflínudóttircompile stuff50243ce5 years agoHistory
27 lines · 897 B · Lua
RawDownload
#!/bin/lu9  file = io.open(arg[1])io.write("<html>\n")io.write("<head>\n")io.write("<title>Soundpipe</title>\n")io.write("<link rel=\"stylesheet\" href=\"css/skeleton.css\">\n")io.write("<link rel=\"stylesheet\" href=\"css/normalize.css\">\n")io.write("</head>\n")io.write("<body>\n<div class=\"container\">\n")io.write("<h1>Soundpipe Modules</h1><table>\n")for line in file:lines() do    sptbl = {}    dofile(string.format("modules/data/%s.lua", line))	io.write("<tr><td>\n")	io.write(string.format("<a href=\"%s.html\">%s</a></td><td><nobr>\n", line, line))  firstline = string.gsub(sptbl[line].description, "\n.+", "")  -- newstring = string.gsub(string,"Tutorial","Language")	io.write(string.format("%s\n", string.sub(firstline, 0, 80)))  if string.len(firstline) > 80 then    io.write("...")  end	io.write("</nobr></td></tr>\n")end io.write("</table></body></html>\n")

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t