merkle-open / generator-nitro

Your frontend? Fuel it with Nitro! Develop your frontend with a proven but flexible Node.js app, even in a large team.
MIT License
71 stars 28 forks source link

Feature/#183 enhance pattern helper with type parameter #184

Closed janwidmer closed 4 years ago

janwidmer commented 4 years ago

Purpose of this pull request?

The pull request refers to the:

What changes did you make?

Enhance the hbs pattern helper to have an optional type parameter. Using this parameter, one can call a pattern within a specific pattern type folder and therefore the pattern name only needs to be unique per pattern type folder

ernscht commented 4 years ago

great enhancement, will have a look soon

ernscht commented 4 years ago

Works great. But one thing. Elements are not covered. Element names has to be unique. How to proceed with this?

janwidmer commented 4 years ago

please recheck, added changes according to our discussion