My LuaX project is finally paying off. This page used to be a pile of carefully arranged HTML with "thing-start", "thing-middle", and "thing-end" templates. Now I have "components" that are just Lua functions that return HTML - and I can just define a big table in Lua with all my data, loop over it to produce HTML, and return it to the browser.