images.lua

1function Image (img)
2  if img.src:sub(1,1) == '/' then
3    img.src = os.getenv 'WEBROOT' .. img.src
4  end
5  return img
6end