<% --[[ Define some variables to make locating other resources easier. ]] local image = getImage(index) %> <%@ include file="header.html" %>
<% if image.renditions.thumb.width > image.renditions.thumb.height then%>
<% else %>
<% end %> $image.metadata.caption
<%@ include file="footer.html" %>