remove render_layout, since it is useless now that we have different renderers
This commit is contained in:
parent
c7eccc88f8
commit
a701055a58
|
@ -15,11 +15,6 @@ class Kohana_Kostache_Layout extends Kohana_Kostache {
|
|||
*/
|
||||
const CONTENT_PARTIAL = 'content';
|
||||
|
||||
/**
|
||||
* @var boolean render template in layout?
|
||||
*/
|
||||
public $render_layout = TRUE;
|
||||
|
||||
/**
|
||||
* @var string layout path
|
||||
*/
|
||||
|
@ -27,11 +22,6 @@ class Kohana_Kostache_Layout extends Kohana_Kostache {
|
|||
|
||||
public function render($class, $template = NULL)
|
||||
{
|
||||
if ( ! $this->render_layout)
|
||||
{
|
||||
return parent::render($class, $template);
|
||||
}
|
||||
|
||||
$this->_engine->setPartials(
|
||||
array(
|
||||
Kostache_Layout::CONTENT_PARTIAL => parent::render($class, $template)
|
||||
|
|
Loading…
Reference in New Issue