posthtml / posthtml-modules

Modules Plugin
MIT License
84 stars 11 forks source link

fix: fix locals merge #75

Closed JVitorRetucci closed 3 years ago

JVitorRetucci commented 3 years ago

Prevents the local variable to keep data from longer arrays that was loaded before.

Scrum commented 3 years ago

@JVitorRetucci The case is not very clear, can you describe and show in more detail?

JVitorRetucci commented 3 years ago

When using a module on more then one page, modules that was receiving less content on an array then others on 'locals' attribute, kept the data from the bigger ones. This commit prevents it from hapenning.