Skip to content

Patternlab mustache partials support broken, when using mustache blocks #88

Open
@sbuckpesch

Description

@sbuckpesch

As we discussed on gitter, I implemented mustache templates using the Blocks pragma. The rendering works, although php fails with "Fatal error: Maximum function nesting level of '250' reached, aborting!", when using blocks in low-level patterns like atoms (even increasing the nesting level to 10.000 will fail).

But here is the acutal bug:
When using blocks, patternlab does not recognize any more that a mustache partial is used. In the two screenshots you can see this. "page-app-create" uses {{< templates-focused-task}} and will extend the focused task "template". In the focussed-task pattern info, the "this pattern is included in" reference to "page-app-create" is missing. I guess this is caused by the use of {{< templates-focused-task}} instead of {{> templates-focused-task}}.
This problem causes that all partials within templates-focused-task, are not populated with data from my json documents (see the header in the link supplied below..

image

image

Here is a link to the github repo: https://github.com/apparena/patterns/tree/master/source/_patterns
And here the deployed styleguide: https://styleguide.app-arena.com/?p=pages-app-create (header missing)
https://styleguide.app-arena.com/?p=templates-focused-task (header working)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions