webmcp
view framework/env/ui/image.lua @ 414:015be25c98dd
Always write to document when "document_column" is set in class
author | jbe |
---|---|
date | Sat Jan 09 05:30:45 2016 +0100 (2016-01-09) |
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