Allow to override default template placeholder value with #define during compilation. (#366)

Signed-off-by: Alexandr Zarubkin <me21@yandex.ru>
This commit is contained in:
Alexandr Zarubkin 2018-07-24 21:26:46 +03:00 committed by Me No Dev
parent 566acfb813
commit fc66fae6a9
1 changed files with 3 additions and 0 deletions

View File

@ -59,7 +59,10 @@ class AsyncAbstractResponse: public AsyncWebServerResponse {
virtual size_t _fillBuffer(uint8_t *buf __attribute__((unused)), size_t maxLen __attribute__((unused))) { return 0; }
};
#ifndef TEMPLATE_PLACEHOLDER
#define TEMPLATE_PLACEHOLDER '%'
#endif
#define TEMPLATE_PARAM_NAME_LENGTH 32
class AsyncFileResponse: public AsyncAbstractResponse {
using File = fs::File;