panini icon indicating copy to clipboard operation
panini copied to clipboard

Ability to specify multiple folders per feature with an array in 2.0

Open marvinhuebner opened this issue 6 years ago • 1 comments

I'm really looking forward to the new features which version 2.0 brings, but unfortunately i've seen that version 2.0 has no option to configure the path to partials or layouts.

We have some project there we share layout and partials between several landing pages. So we pass a default paths to the layouts, data and partials but we have several directories for the pages.

Could it be possible to bring these options back to panini?

marvinhuebner avatar Apr 23 '18 14:04 marvinhuebner

Because I'm currently doing a lot with foundation for emails (plus inky and panini), this point has come to my head again. Here is a recent example where I have to set special paths for layouts and partials (Magento 2 Template): https://github.com/bergwerk/magento2-frontools/blob/ec2219cad835510832542a57004e7188fbda9999/helper/inky.js#L40-L45

With version 1 that works great, with version 2 that would not work anymore.

There were probably already the options in version 2, but there were removed (https://github.com/zurb/panini/commit/8d5a66701f299c5040b41e24165324f02ed94c11). Maybe there is the option to reintroduce it. The option that the paths are recognized automatically can be set as default, but if you want to change this, it would be great to have this option.

marvinhuebner avatar Nov 15 '18 16:11 marvinhuebner