Mercurial > pub > Impl
diff Lib/IMPL/Web/TT/Control.pm @ 140:fb896377389f
to_json and escape_string functions for the templates
minor changes
author | wizard |
---|---|
date | Mon, 05 Jul 2010 02:22:42 +0400 |
parents | c8dfbbdd8005 |
children | 4267a2ac3d46 |
line wrap: on
line diff
--- a/Lib/IMPL/Web/TT/Control.pm Thu Jul 01 17:32:29 2010 +0400 +++ b/Lib/IMPL/Web/TT/Control.pm Mon Jul 05 02:22:42 2010 +0400 @@ -20,12 +20,12 @@ if ($this->document) { # load a template - $args{template} = $this->document->context->template($args{template}) if ($args{template} and not ref $args{template}); + $this->template( $this->document->context->template($args{template})) if ($args{template} and not ref $args{template}); } #$this->template($args{template}) if $args{template}; $this->id($this->nodeName . '-' . $nextId++); - $this->controlClass($args{controlClass} || 'Control'); + $this->controlClass('Control') unless $this->controlClass; } sub Render {