I have the following code, and I would like to render as PDF:
<apex:page controller="MyController">
<apex:repeat value="{!pagesToShow}" var="page">
<apex:include pageName="{!page}" />
</apex:repeat>
</apex:page>
templatesToShow is a list in the controller that holds VF pages.
This doesn't works because apex:include is looking the page variable in the controller. But It's not here because it's within the repeat scope.
Any advice to get dynamic page showing?
apex:include
line