Tieu Philippe KHIM

Results 7 comments of Tieu Philippe KHIM

I've just write a nest module for prometheus (see: https://github.com/digikare/nestjs-prom). At the moment the module is quite simple... that is my first nestjs module.

I've found a workaround, the main problem is dynamic partial is not registered on `Handlebars.partials` context. So to support dynamic partial, you need to register the precompiled template as partial...

@MelanieMenard I forget to mention my webpack.config.... I do have that: ```javascript { resolve: { alias: : { 'handlebars': 'handlebars/runtime.js' } } } ``` Could you try to call at...

@MelanieMenard At the end of the documentation about precompilation: https://handlebarsjs.com/precompilation.html We can see: ```javascript Handlebars.partials["test1"] = template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) { var helper; return "whatever " + container.escapeExpression(((helper = (helper = helpers.name...

@pcardune I think `handlebars-loader` could not really handle correctly dynamic partials, because webpack guide line explain clearly loader should be simple and determinist. So we could not really update handlebars...

That doesn't work for me on OSX 10.8.4 strange...

@nawar-hamo-sonarsource could you please have a look on that PR?