sagold / handlebars-webpack-plugin

Renders your html-template at build time
162 stars 45 forks source link

Add `async` support for `onBeforeRender` hook #82

Closed vladbalanescu closed 2 weeks ago

vladbalanescu commented 3 years ago

Background:

We're currently facing a use case in which we're relying on some pending API/XHR responses to be returned before our template within our app is rendered. Therefore, we need an option for the plugin initial hooks to be async and cater for async responses.

xavierfoucrier commented 2 weeks ago

Thanks @vladbalanescu for your contribution to this project. I will improve this and propagate the feature on all hooks as well 😎