jbe/bsw@0: --[[-- jbe/bsw@0: string = -- string to be used as __format information jbe/bsw@0: encode.format_info( jbe/bsw@0: format, -- name of format function jbe/bsw@0: params -- arguments for format function jbe/bsw@0: ) jbe/bsw@0: jbe/bsw@0: 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. jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function encode.format_info(format, params) jbe/bsw@0: return format .. encode.format_options(params) jbe/bsw@0: end