callback is not called with the rendered data
noamshvacher opened this issue · 0 comments
noamshvacher commented
Describe the bug
The callback function is not called with the rendered data from handlebars adapter:
To Reproduce
Steps to reproduce the behavior:
- Implement custom adapter that implements
TemplateAdapter
as decorator - Inside
compile
callcompile
function ofthis.adapter
class CustomAdapter implements TemplateAdapter {
constructor (private readonly adapter: TemplateAdapter) {}
compile(...) {
this.adapter.compile(
content,
(err?: any, body?: string) => {
callback(err, body);
}
);
}
}
Expected behavior
That the callback function will be called with err or body params
Desktop (please complete the following information):
- OS: MacOS Ventura 13.4
- Browser Arc
- Version 0.111.0
Additional context
Mac M2 with silicone chip