Sascha Goldhofer

Results 54 comments of Sascha Goldhofer

The safest way to register a helper might to use an expression function like ```js helper: { salutation: function(context, options) { return 'Hi, everybody'; } } ``` or you could...

Hi jshjohnson. You can always manually register partials in the plugin config like ```js { onBeforeAddPartials: function (Handlebars) { const helpers = require("../.../helpers.js"); Object.keys(helpers).forEach((id) => { Handlebars.registerPartial(id, helpers[id]); }); }...

Thank you, for posting the solution!

Hi 5ulo. the value on `entry` will be passed through glob within the plugin. Something like the following should work: ```js entry: './src/!(assets|data|helpers|partials)/**/*.hbs', ```

Hi mortenfischer. This plugin, handlebars-webpack-plugin does support webpack-dev-server. You can follow the example in the [Readme](https://github.com/sagold/handlebars-webpack-plugin/blob/master/README.md#usage). You have a webpack-configuration and this plugins instance has to be passed to the...

Hi brightpixels. Sorry, im short in spare time right now. Just as a side note: the mentioned loader does compile the hbs-files on build time, too.

Hi daveferrara. The data is simply [passed to the template function](https://github.com/sagold/handlebars-webpack-plugin/blob/master/index.js#L103) as explained in the [handlebars docs](http://handlebarsjs.com/execution.html). To access the data within a helper you have two options: 1. Pass...

Hi. I did not want this feature being a part of the plugin, since the json input by file or object is a clean interface for the data. Anything like...

As of now, you can follow the example to merge json-files or use the helper function within this repository: https://github.com/sagold/handlebars-webpack-plugin#merging-input-data