webmcp

diff framework/env/request/handler.lua @ 492:93ebbc1e5dbc

Allow actions to directly return content (e.g. for XMLHttpRequests) by calling slot.set_layout(...) during request handling
author jbe
date Tue Jun 27 17:34:02 2017 +0200 (2017-06-27)
parents 7a7770297ae8
children e7c9a80b6795
line diff
     1.1 --- a/framework/env/request/handler.lua	Tue Jun 27 15:38:24 2017 +0200
     1.2 +++ b/framework/env/request/handler.lua	Tue Jun 27 17:34:02 2017 +0200
     1.3 @@ -144,7 +144,7 @@
     1.4              module = request.get_module(),
     1.5              action = request.get_action(),
     1.6            }
     1.7 -          if not request.is_rerouted() then
     1.8 +          if not (request.is_rerouted() or slot.layout_is_set()) then
     1.9              local routing_mode, routing_module, routing_view, routing_anchor
    1.10              routing_mode   = http_request.post_params["_webmcp_routing." .. action_status .. ".mode"]
    1.11              routing_module = http_request.post_params["_webmcp_routing." .. action_status .. ".module"]

Impressum / About Us