rwaymouth / plugin-node-engine-extender

Pattern Lab Node pattern engine extender
1 stars 2 forks source link

Question: Request extra example of usage with handlebars helpers #2

Open Josh68 opened 6 years ago

Josh68 commented 6 years ago

Feeling like a numbskull here, but I feel like I could use a bit more of an example of how to tie together helpers and the handlebars engine with the config file. I think I can see how I'd manually stick in my own helpers (an option), but not clear how helpers.join is meant to pick up anything automatically (or is it)? Thanks.

Josh68 commented 6 years ago

I managed to get this to "work" by simply using the extensions file I registered with the plugin to first register extra helpers on Handlebars before registering on the engine. However, this plugin pattern somehow obliterates plugin-node-tab enhancements, so I lose any extra tabs I've registered with that plugin. Any thoughts on how to fix would be welcome. I've tried examining the plugin docs and modifying the index.js for this plugin, but the result is always the same.