| 27 | } |
| 28 | |
| 29 | String TemplateStream::getValue(const char* name) |
| 30 | { |
| 31 | String s = static_cast<const Variables&>(templateData)[name]; |
| 32 | if(!s && getValueCallback) { |
| 33 | s = getValueCallback(name); |
| 34 | } |
| 35 | debug_d("[TMPL] value '%s' %sfound: \"%s\"", name, s ? "" : "NOT ", s.c_str()); |
| 36 | return s; |
| 37 | } |
| 38 | |
| 39 | uint16_t TemplateStream::readMemoryBlock(char* data, int bufSize) |
| 40 | { |