webmcp

diff framework/env/encode/format_info.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/encode/format_info.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +--[[--
     1.5 +string =             -- string to be used as __format information
     1.6 +encode.format_info(
     1.7 +  format,            -- name of format function
     1.8 +  params             -- arguments for format function
     1.9 +)
    1.10 +
    1.11 +The string returned by the function can be used as value in a hidden form field with a "__format" suffix. It will be used by the param.* functions to parse a string.
    1.12 +
    1.13 +--]]--
    1.14 +
    1.15 +function encode.format_info(format, params)
    1.16 +  return format .. encode.format_options(params)
    1.17 +end

Impressum / About Us