Expose the pattern engines as a property of the patternlab object#555
Conversation
128a502 to
039528a
Compare
bmuenzenmeyer
left a comment
There was a problem hiding this comment.
@geoffp pattern engines are your baby - see anything wrong with this? I am cool
|
Here's an example of how I consume the patternlab.engine property in my patternlab-node plugin: |
|
@geoffp poke |
|
I have received the poke! I'll check into this. |
|
Yeah, I'm cool with it. I had designed the pattern_engines module to be addressable as an array of engines when you require it, just the way I think you want, but being that it's part of patternlab-node, I can see how that would be super awkward from inside a plugin. No harm in hanging another reference on the main PL object. |
|
This will be released with next version - thanks! |
When developing a patternlab-node plugin, I found it useful to have access to the loaded pattern engines as a property of the patternlab object. This PR introduces an
enginesproperty to thepatternlabobject.