webmcp

diff framework/env/ui_deprecated/tag.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_deprecated/tag.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,20 @@
     1.4 +function ui_deprecated.tag(name, args)
     1.5 +  
     1.6 +  local html_options = args.html_options or {}
     1.7 +   
     1.8 +  slot.put('<', name, ui_deprecated._stringify_table(html_options), '>')
     1.9 +
    1.10 +  if args.label then
    1.11 +    ui_deprecated.label(args.label)
    1.12 +  end
    1.13 +
    1.14 +  if type(args.content) == 'function' then
    1.15 +    args.content()
    1.16 +  else
    1.17 +    ui_deprecated.text(args.content)
    1.18 +  end
    1.19 +
    1.20 +  slot.put('</', name, '>')
    1.21 +
    1.22 +
    1.23 +end
    1.24 \ No newline at end of file

Impressum / About Us