Mercurial > pub > Impl
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 186:6c0fee769b0c | 187:927653d01f4f |
|---|---|
| 73 } | 73 } |
| 74 | 74 |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 | 77 |
| 78 sub renderBlock { | |
| 79 $_[0]->template; | |
| 80 } | |
| 81 | |
| 78 sub Render { | 82 sub Render { |
| 79 my ($this,$param) = @_; | 83 my ($this,$args) = @_; |
| 80 | 84 |
| 81 my $output = $this->context->process($this->template, {this => $this, document => $this} ); | 85 my $output = $this->IMPL::Web::TTControl::Render( { document => $this } ); |
| 82 | 86 |
| 83 if ($this->layout) { | 87 if ($this->layout) { |
| 84 $output = $this->context->include($this->layout,{ content => $output }); | 88 $output = $this->context->include($this->layout, { content => $output } ); |
| 85 } | 89 } |
| 86 | 90 |
| 87 return $output; | 91 return $output; |
| 88 } | 92 } |
| 89 | 93 |
