Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: acronymRender Arguments: data Description: Render function for acronym Page type: webl Render function: Module: global Page source: if (Size(data.definitions) == 0) then NewPiece("No definitions found for acronym: <b>" + ToString(data.acronym) + "</b>", "text/html"); else var res = "<h1>Acronym: " + ToString(data.acronym) + "</h1>\n<ul>\n"; var i = 0; while (i < Size(data.definitions)) do res = res + "<li>" + data.definitions[i] + "</li>\n"; i = i + 1 end; NewPiece(res + "</ul>", "text/html") end;