Documentation for this module may be created at Module:TerminalCommandGenerator/doc
local p = {}
function p.generateHtml(frame)
local commands = frame.args
local html = ""
for i, command in ipairs(commands) do
if i % 2 == 0 then
html = html .. '<p class="term-output">' .. command .. '</p>\n'
else
html = html .. '<p class="term-command">' .. command .. '</p>\n'
end
end
return html
end
return p