webmcp
annotate framework/env/slot/__init.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 | a88662f795e0 |
children |
rev | line source |
---|---|
jbe@262 | 1 request.for_each(function() |
jbe@260 | 2 |
jbe@262 | 3 slot._active_slot = "default" |
jbe@262 | 4 |
jbe@262 | 5 slot._current_layout = "default" |
jbe@262 | 6 slot._content_type = nil |
jbe@492 | 7 slot._layout_set = false |
jbe@260 | 8 |
jbe@260 | 9 slot._data = nil |
jbe@260 | 10 slot.reset_all() |
jbe@260 | 11 |
jbe@265 | 12 end) |