You can also wrap layouts within other layouts and get incredible reusability. This is accomplished by using the renderLayout()
method in the Renderer. As always, refer to the CFC API for the latest method arguments and capabilities.
So if I wanted to wrap my basic layout in a PDF wrapper layout (pdf.cfm
) I could do the following:
That's it! The renderLayout()
method is extremely power as it can allow you to not only nest layouts but actually render a-la-carte layout/view combinations also.