webmcp
annotate framework/env/slot/layout_is_set.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 | |
| children | 
| rev | line source | 
|---|---|
| jbe@492 | 1 --[[-- | 
| jbe@492 | 2 bool = -- set to true if layout has been set explicitly during processing request | 
| jbe@492 | 3 slot.layout_is_set() | 
| jbe@492 | 4 | 
| jbe@492 | 5 Returns true if slot.set_layout(...) has been called during handling of a request. | 
| jbe@492 | 6 | 
| jbe@492 | 7 --]]-- | 
| jbe@492 | 8 | 
| jbe@492 | 9 function slot.layout_is_set() | 
| jbe@492 | 10 return slot._layout_set | 
| jbe@492 | 11 end |