<% --[[ Define some variables to make locating other resources easier firstPage was defined in our manifest.]] local others = "content" local theRoot = "." local mySize = "thumb" %> <% --[[ Include the page header]] %> <%@ include file="head.html" %> <% --[[ Main grid area ]] %>
<% --[[ Logic for putting borders around all the grid cells ]] local borderFunc = function( row, column ) local result = '' if column == columns then result = ' borderRight' end if row == rows then result = result .. ' borderBottom' end return result end %> <% --[[ The grid ]] %>
<% --[[ Pagination section ]] %> <% if numGridPages > 1 then %> <% end %> <% --[[ Include the page footer]] %> <%@ include file="foot.html" %>