Skip template expansion when html control does not have any chameleon tokens
This commit is contained in:
@@ -90,9 +90,8 @@ sub main {
|
||||
}
|
||||
|
||||
# and table control fields
|
||||
<tal:block tal:repeat="tablecontrol tablecontrols">
|
||||
$c->stash(${tablecontrol}=>$c->get_${tablecontrol}());
|
||||
</tal:block>
|
||||
<tal:block tal:repeat="tablecontrol tablecontrols">$c->stash(${tablecontrol[0]}=>$c->get_${tablecontrol[0]}());
|
||||
</tal:block>
|
||||
|
||||
$c->stash(
|
||||
title => $title,
|
||||
@@ -262,9 +261,8 @@ sub do_display {
|
||||
</tal:block>
|
||||
|
||||
# and table control fields
|
||||
<tal:block tal:repeat="tablecontrol tablecontrols">
|
||||
$c->stash(${tablecontrol}=>$c->get_${tablecontrol}());
|
||||
</tal:block>
|
||||
<tal:block tal:repeat="tablecontrol tablecontrols">$c->stash(${tablecontrol[0]}=>$c->get_${tablecontrol[0]}());
|
||||
</tal:block>
|
||||
|
||||
# Data for panel
|
||||
$c->stash(
|
||||
|
@@ -224,7 +224,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class='${classname}'>
|
||||
% my $control_data = $self->stash('${TableControl}');
|
||||
% my $control_data = $c->stash('${TableControl}');
|
||||
% foreach my $row (@$control_data) {
|
||||
<tr class='table-row'><tal:block tal:repeat="ColContent Columns">
|
||||
<td class='sme-border table-col table-col-${ColContent}'><%=$c->render_to_string(inline=>$row->{'${ColContent}'})%></td></tal:block>
|
||||
@@ -243,12 +243,18 @@
|
||||
</Preformatted>
|
||||
|
||||
<Link><![CDATA[
|
||||
%= link_to l('${title}'), '${structure:href}' , class=>'link link${type_serial}'
|
||||
<a href='${structure:href}' class='link link${type_serial}'>
|
||||
%= l('${title}')
|
||||
</a>
|
||||
%#= link_to l('${title}'), '${structure:href}' , class=>'link link${type_serial}'
|
||||
]]>
|
||||
</Link>
|
||||
|
||||
<ButtonLink><![CDATA[
|
||||
%= button_to l('${title}'), '${structure:href}' , class=>'buttonlink buttonlink${type_serial}'
|
||||
<button href='${structure:href}' class='buttonlink buttonlink${type_serial}'>
|
||||
%= l('${title}')
|
||||
</button>
|
||||
%#= button_to l('${title}'), '${structure:href}' , class=>'buttonlink buttonlink${type_serial}'
|
||||
]]>
|
||||
</ButtonLink>
|
||||
|
||||
@@ -265,7 +271,7 @@
|
||||
</Group>
|
||||
|
||||
<Endgroup><![CDATA[
|
||||
<div></div>
|
||||
</div>
|
||||
]]>
|
||||
</Endgroup>
|
||||
|
||||
|
@@ -8,9 +8,10 @@
|
||||
<div id="module" class="module ${PackageName}-panel">
|
||||
|
||||
% if ($config->{debug} == 1) {
|
||||
<p>
|
||||
<pre>
|
||||
%= dumper $c->current_route
|
||||
</p>
|
||||
%= dumper $$${prefix}_data->{trt}
|
||||
</pre>
|
||||
% }
|
||||
|
||||
<h1><%=$title%></h1>
|
||||
|
Reference in New Issue
Block a user