Added $render_layout flag to Kostache_Layout
This commit is contained in:
parent
3919aab096
commit
c1f5b5592d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue