handlebars.js - Is there a way to integrate handlebars-helpers with hapi? -


i use handlebars-helpers node module handlebars templates. i'm using hapi framework supports handlebars. haven't found documentation or examples shows how use handlebars-helpers hapi using handlebars view engine.

is possible , if so, solution?

i don't think it's possible according hapijs api docs views:

http://hapijs.com/api#serverviewsoptions

helperspath - directory path helpers located. helpers functions used within templates perform transformations , other data manipulations using template context or other inputs. each '.js' file in helpers directory loaded , file name used helper name. files must export single method signature function(context) , return string. sub-folders not supported , ignored. defaults no helpers support (empty path). note jade not support loading helpers way.

looks though handlebars-helpers has different signature required hapi


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -