Module:TerminalCommandGenerator

From iPhone Development Wiki
Revision as of 03:00, 7 October 2023 by Cynder (talk | contribs)

Documentation for this module may be created at Module:TerminalCommandGenerator/doc

local p = {}


function p.generateHtml(frame)
    local commands = frame.args
    local outputs = {}
    local html = ""

    for i, command in ipairs(commands) do
        if i % 2 == 0 then
            html = html .. '<p class="term-output">' .. output .. '</p>\n'
        else
            html = html .. '<p class="term-command">' .. command .. '</p>\n'
        end
    end

    return html
end

return p