|
<< Click to Display Table of Contents >> Navigation: Telegram > 2019 > 08 > 12 > Telegram_2019-08-12T16 |
2019-08-12T16:13:30
Load your template to TMemoryStream instances (1 for each template file) do whatever you want with them and add them to the ServerInternalFiles list. Use them from there instead of loading/processing it every time.
2019-08-12T16:16:39
Then just use the BeforeProcess event to use your own stream. This way IW won't load it from file
2019-08-12T16:19:43
wow. ok.
2019-08-12T16:20:33
but if you are following this, use the ServerController.OnConfig event
2019-08-12T16:20:50
Sure
2019-08-12T16:21:44
if you need to do some processment which is dependent on the request, then you need to do the processment using the BeforeProcess event anyway. You can still use the serverInternalFile to avoid having to load the template from file every time