webmcp

view framework/env/param/get_id_raw.lua @ 91:2f8d8edd1836

URL parsing inside WebMCP to simplify webserver configuration
author jbe
date Wed Oct 10 17:41:46 2012 +0200 (2012-10-10)
parents framework/env/param/get_id_cgi.lua@9fdfb27f8e67
children
line source
1 --[[--
2 value = -- id as string (or other type after if params.exchange(...) has been used), or nil
3 param.get_id_raw()
5 Returns the requested id for a view unprocessed (that is as a string, unless params.exchange(...) has been used).
7 --]]--
9 function param.get_id_raw()
10 if param._exchanged then
11 return param._exchanged.id
12 else
13 return request.get_id_string()
14 end
15 end

Impressum / About Us