webmcp

diff framework/env/ui/image.lua @ 0:9fdfb27f8e67

Version 1.0.0
author jbe/bsw
date Sun Oct 25 12:00:00 2009 +0100 (2009-10-25)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/framework/env/ui/image.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,13 @@
     1.4 +function ui.image(args)
     1.5 +  local args = args or {}
     1.6 +  local attr = table.new(args.attr)
     1.7 +  attr.src = encode.url{
     1.8 +    external  = args.external,
     1.9 +    static    = args.static,
    1.10 +    module    = args.module or request.get_module(),
    1.11 +    view      = args.view,
    1.12 +    id        = args.id,
    1.13 +    params    = args.params,
    1.14 +  }
    1.15 +  return ui.tag{ tag = "img", attr = attr }
    1.16 +end

Impressum / About Us