Mercurial > pub > Impl
diff Lib/IMPL/Web/View/TTDocument.pm @ 187:927653d01f4f
TTControl::AUTOLOAD now accesses nodeProperties
Added TTControl::renderBlock property to access RENDER block of the template
author | sergey |
---|---|
date | Tue, 03 Apr 2012 07:54:25 +0400 |
parents | 6c0fee769b0c |
children | 029c9610528c |
line wrap: on
line diff
--- a/Lib/IMPL/Web/View/TTDocument.pm Fri Mar 30 16:40:34 2012 +0400 +++ b/Lib/IMPL/Web/View/TTDocument.pm Tue Apr 03 07:54:25 2012 +0400 @@ -75,13 +75,17 @@ } } +sub renderBlock { + $_[0]->template; +} + sub Render { - my ($this,$param) = @_; + my ($this,$args) = @_; - my $output = $this->context->process($this->template, {this => $this, document => $this} ); + my $output = $this->IMPL::Web::TTControl::Render( { document => $this } ); if ($this->layout) { - $output = $this->context->include($this->layout,{ content => $output }); + $output = $this->context->include($this->layout, { content => $output } ); } return $output;