webmcp
view framework/env/request/initialize.lua @ 354:e7e51bcf47d1
Fixed comment
| author | jbe | 
|---|---|
| date | Thu Mar 26 19:02:19 2015 +0100 (2015-03-26) | 
| parents | e3e2a03f75b2 | 
| children | 545ec2e3eafa | 
 line source
     1 --[[--
     2 request.initialize()
     4 Executes all request initializers. Request initializers are added (and executed) using the request.for_each(...) call. Calling request.configure(...) before invoking request.initialize() for the first time also adds a request initializer.
     6 --]]--
     7 function request.initialize()
     8   _G.app = {}  -- may be overwritten or modified by request initializers
     9   do
    10     request._in_progress = true  -- NOTE: must be set to true before initializer functions are called
    11     for i, func in ipairs(request._initializers) do
    12       func()
    13     end
    14   end
    15 end
    16 --//--
    18 --[[--
    19 app  -- table to store an application state
    21 'app' is a global table for storing any application state data. It will be reset for every request.
    22 --]]--
    24 -- Initialized in request.initialize(...).
    26 --//--
