Added $render_layout flag to Kostache_Layout

This commit is contained in:
Woody Gilk 2011-02-25 10:59:43 -05:00
parent 3919aab096
commit c1f5b5592d

View file

@ -7,6 +7,11 @@ abstract class Kohana_Kostache_Layout extends Kostache {
*/
const CONTENT_PARTIAL = 'content';
/**
* @var boolean render template in layout?
*/
public $render_layout = TRUE;
/**
* @var string layout path
*/
@ -14,7 +19,7 @@ abstract class Kohana_Kostache_Layout extends Kostache {
public function render()
{
if ( ! $this->_layout)
if ( ! $this->render_layout)
{
return parent::render();
}