Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate why PL Node does not render the Demo homepage correctly #781

Closed
bmuenzenmeyer opened this issue Jan 19, 2018 · 3 comments
Closed
Milestone

Comments

@bmuenzenmeyer
Copy link
Member

http://demo.patternlab.io/?p=pages-homepage when run with Pattern Lab Node does not show you the blog posts. The header also seems off. The demo uses a lot of native arrays, with data merging of page-level json. Investigate, fix, cover with unit tests

Expected

image

Actual

image

@bmuenzenmeyer bmuenzenmeyer added this to the 3.0.0 milestone Jan 19, 2018
@bmuenzenmeyer
Copy link
Member Author

🕵️ After some investigation - I've discovered the culprit: [email protected] when included across two different patterns. In the case above, the home page renders this fine but subsequent renders do not. Rather that track down the exact reason for this, we are dropping support for the old method in favor of the markdown approach

This syntax for documenting patterns has been for a while to use the companion markdown file instead of this file convention. Removing the @inreview from the filename restores the functionality expected.

Adding a note in the upgrade instructions about this.

@bradfrost
Copy link
Member

Nice sleuthing, @bmuenzenmeyer!

@bmuenzenmeyer
Copy link
Member Author

Thanks @bradfrost - I've also replaced that code within pattern-lab/starterkit-mustache-demo@16c7961

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants