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

fix(twig): fix duplicate fractal loader name when extending Twig #887

Merged
merged 2 commits into from
May 18, 2021

Conversation

mihkeleidast
Copy link
Member

Fixes #607.

From what I understand, both components and docs registered a Twig loader named "fractal" so that's why the issue happened. What I don't understand is why it's necessary to register the loader for docs at all - I get that internally docs also have @-handles but I have no idea if it should be used anywhere? Handlebars adapter registers the partial loading globally only for components (I think, I don't understand the code there too much), while Nunjucks behaves more like the Twig adapter code-wise. So I don't even understand what the "normal" behavior should be.

Also, this change might break something - like when some component handles are used in docs files. But since I don't know the backstory on this implementation, I would rather break this now, get some bug reports and fix the issues while learning about the usecases and expected results.

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

Successfully merging this pull request may close these issues.

Can't render child components when using twig for both components and docs
1 participant