koajs / koa-hbs

Handlebars templates for Koa.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement async helpers

jwilm opened this issue · comments

The API for this should look something like

hbs.registerAsyncHelper('helperName', function *() {
  /* generator code */
});

I'm really not seeing the point of async helpers. Any async operations can be handled in the controller, and they would otherwise hurt template rendering performance.