frctl / twig

Use Twig templates with Fractal.
32 stars 34 forks source link

add support for docs #37

Closed mihkeleidast closed 4 years ago

mihkeleidast commented 4 years ago

This PR will:

Background for the documentation weirdness: If the engines are set in the opposite order (for components first, then for docs), then due to the fact how the adapter currently extends & monkeypatches Twig, all includes will try to reference docs entities instead of component entities.

I think we should try to find a way to improve that, since the order of setting engines in the config should not make a difference.

Manually tested that, when following the docs: