core-bundle icon indicating copy to clipboard operation
core-bundle copied to clipboard

add a twig function to get the rendered version of a route path

Open lsmith77 opened this issue 13 years ago • 4 comments

the idea is that this function would look at the configuration of the route to determine the controller/template etc

lsmith77 avatar Oct 05 '12 09:10 lsmith77

interesting idea. this could conflict a bit with the block concept - or we could wrap the thing into a block rather than a twig function? you would not want the exact same template to happen as with a full request, you need a clean html structure.

also is this not similar to a subrequest?

dbu avatar Oct 08 '12 08:10 dbu

yes it would be a subrequest, but contrary to a normal render call, i would want to pass in a document path, rather than specifying a controller with specific parameters.

lsmith77 avatar Oct 08 '12 08:10 lsmith77

what about implementing this as a special type of block?

dbu avatar Oct 08 '12 09:10 dbu

could work ..

lsmith77 avatar Oct 08 '12 09:10 lsmith77