webmcp

diff framework/env/encode/url.lua @ 267:56d237b81c18

Support for external redirects and redirects to static files
author jbe
date Fri Mar 20 15:12:31 2015 +0100 (2015-03-20)
parents ca3f7b001014
children 122271e0118e
line diff
     1.1 --- a/framework/env/encode/url.lua	Fri Mar 20 13:41:28 2015 +0100
     1.2 +++ b/framework/env/encode/url.lua	Fri Mar 20 15:12:31 2015 +0100
     1.3 @@ -1,15 +1,15 @@
     1.4  --[[--
     1.5 -url_string =              -- a string containing an URL
     1.6 +url_string =             -- a string containing an URL
     1.7  encode.url{
     1.8 -  external  = external,   -- external URL (instead of specifying base, module, etc. below)
     1.9 -  base      = base,       -- optional string containing a base URL of a WebMCP application
    1.10 -  static    = static,     -- an URL relative to the static file directory
    1.11 -  module    = module,     -- a module name of the WebMCP application
    1.12 -  view      = view,       -- a view name of the WebMCP application
    1.13 -  action    = action,     -- an action name of the WebMCP application
    1.14 -  id        = id,         -- optional id to be passed to the view or action to select a particular data record
    1.15 -  params    = params,     -- optional parameters to be passed to the view or action
    1.16 -  anchor    = anchor      -- anchor in URL
    1.17 +  external = external,   -- external URL (instead of specifying base, module, etc. below)
    1.18 +  base     = base,       -- optional string containing a base URL of a WebMCP application
    1.19 +  static   = static,     -- an URL relative to the static file directory
    1.20 +  module   = module,     -- a module name of the WebMCP application
    1.21 +  view     = view,       -- a view name of the WebMCP application
    1.22 +  action   = action,     -- an action name of the WebMCP application
    1.23 +  id       = id,         -- optional id to be passed to the view or action to select a particular data record
    1.24 +  params   = params,     -- optional parameters to be passed to the view or action
    1.25 +  anchor   = anchor      -- anchor in URL
    1.26  }
    1.27  
    1.28  This function creates URLs to external locations, to static files within the WebMCP application or to a certain view or action inside a module.

Impressum / About Us