webmcp
view framework/env/ui/image.lua @ 175:20e393d2e6e1
Completed comments and minor code cleanup in JSON library; Added emergency garbage collection for memory allocation in json.export function
| author | jbe | 
|---|---|
| date | Fri Aug 01 21:54:45 2014 +0200 (2014-08-01) | 
| parents | 9fdfb27f8e67 | 
| children | 
 line source
     1 function ui.image(args)
     2   local args = args or {}
     3   local attr = table.new(args.attr)
     4   attr.src = encode.url{
     5     external  = args.external,
     6     static    = args.static,
     7     module    = args.module or request.get_module(),
     8     view      = args.view,
     9     id        = args.id,
    10     params    = args.params,
    11   }
    12   return ui.tag{ tag = "img", attr = attr }
    13 end
