webmcp
view framework/env/ui_deprecated/image.lua @ 6:5cba83b3f411
Version 1.0.6
Bugfix: class_prototype:add_reference{...} uses now qualified names in SQL queries to allow JOINs
Fixes in the documentation of slot.put_into and trace.debug
Bugfix: class_prototype:add_reference{...} uses now qualified names in SQL queries to allow JOINs
Fixes in the documentation of slot.put_into and trace.debug
| author | jbe/bsw | 
|---|---|
| date | Fri Jan 22 12:00:00 2010 +0100 (2010-01-22) | 
| parents | 9fdfb27f8e67 | 
| children | 
 line source
     1 --
     2 -- Creates an image
     3 --
     4 -- image           (string)
     5 --
     6 -- Example:
     7 --
     8 --  ui_deprecated.image({
     9 --    image = 'test.png',
    10 --  })
    11 --
    13 function ui_deprecated.image(args)
    14   assert(args.image, "No image argument given.")
    15   slot.put(
    16     '<img src="',
    17     request.get_relative_baseurl(),
    18     'static/',
    19     args.image,
    20     '" />'
    21   )
    22 end
