1. <?php
  2. /**
  3. * @package Tasty
  4. * @author YOOtheme http://www.yootheme.com
  5. * @copyright Copyright (C) YOOtheme GmbH
  6. * @license http://www.gnu.org/licenses/gpl.html GNU/GPL
  7. */
  8.  
  9. // get warp
  10. $warp = Warp::getInstance();
  11.  
  12. // get content from output buffer and set a slot for the template renderer
  13. $warp['template']->set('content', ob_get_clean());
  14.  
  15. // load main template file, located in /layouts/template.php
  16. echo $warp['template']->render('template');