codeguy/Slim — Issue #233: Support for capturing template result
Author: Tieno
Created: 2012-01-31 14:38:01+00:00
State: open

I'd be nice if the Slim app instance could provide direct support for capturing the render result too, instead of directly outputting it. (I use some twig templates for sending emails).

So far I've done this myself by adding a method to the TwigView class (I use twig), which is accessed like so $app->view()->getRender('template', $data);