Skip to content

Commit 6eea0aa

Browse files
committed
Updated compiled code results
1 parent 6815514 commit 6eea0aa

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

php_handlebars_template.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Compiled 1000 times | 3.26 ms/compile | 20.6 KB code | 1.8 MB peak
2-
Executed 1000 times | 1.54 ms/render | 139.9 KB output | 1.9 MB peak
1+
Compiled 1000 times | 3.18 ms/compile | 20.7 KB code | 1.8 MB peak
2+
Executed 1000 times | 1.50 ms/render | 139.9 KB output | 1.9 MB peak
33
<?php
44
use DevTheorem\Handlebars\Runtime as LR;
55
return function (mixed $in = null, array $options = []) {
@@ -49,8 +49,8 @@
4949
<table class="table table-striped'.(LR::ifvar(LR::cv($in, 'hoverable')) ? ' table-hover' : '').(LR::ifvar(LR::cv($in, 'bordered')) ? ' table-bordered' : '').'">
5050
<thead>
5151
<tr>
52-
'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$in['columns'] ?? null], [], $in, function($cx, $in) {$sc=count($cx->depths);return ' <th '.(LR::ifvar(LR::cv($in, 'width')) ? 'style="width:'.LR::encq(LR::cv($in, 'width')).'"' : '').' class="'.(LR::ifvar(LR::cv($in, 'sortable')) ? 'sortable' : '').(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$in['currentSort']['key'] ?? null,$in['key'] ?? null], [], $in)) ? ' sort-'.LR::encq($in['currentSort']['dir'] ?? null) : '').'">
53-
'.(LR::ifvar(LR::cv($in, 'sortable')) ? ' <a href="'.LR::encq($cx->depths[$sc-1]['sortBaseUrl'] ?? null).'?sort='.LR::encq(LR::cv($in, 'key')).'&dir='.(LR::ifvar(LR::hbch($cx, $cx->helpers['and'], 'and', [LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->depths[$sc-1]['currentSort']['key'] ?? null,$in['key'] ?? null], [], $in),LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->depths[$sc-1]['currentSort']['dir'] ?? null,'asc'], [], $in)], [], $in)) ? 'desc' : 'asc').'">
52+
'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$in['columns'] ?? null], [], $in, function($cx, $in) {$sc=count($cx->depths);return ' <th '.(LR::ifvar(LR::cv($in, 'width')) ? 'style="width:'.LR::encq(LR::cv($in, 'width')).'"' : '').' class="'.(LR::ifvar(LR::cv($in, 'sortable')) ? 'sortable' : '').(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$in['currentSort']['key'] ?? null,$in['key'] ?? null], [], $in)) ? ' sort-'.LR::encq(LR::dv($in['currentSort']['dir'] ?? null)) : '').'">
53+
'.(LR::ifvar(LR::cv($in, 'sortable')) ? ' <a href="'.LR::encq(LR::dv($cx->depths[$sc-1]['sortBaseUrl'] ?? null)).'?sort='.LR::encq(LR::cv($in, 'key')).'&dir='.(LR::ifvar(LR::hbch($cx, $cx->helpers['and'], 'and', [LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->depths[$sc-1]['currentSort']['key'] ?? null,$in['key'] ?? null], [], $in),LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->depths[$sc-1]['currentSort']['dir'] ?? null,'asc'], [], $in)], [], $in)) ? 'desc' : 'asc').'">
5454
'.LR::encq(LR::cv($in, 'label')).'
5555
</a>
5656
' : ' '.LR::encq(LR::cv($in, 'label')).'
@@ -59,7 +59,7 @@
5959
</tr>
6060
</thead>
6161
<tbody>
62-
'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$in['items'] ?? null], [], $in, function($cx, $in, array $blockParams = []) {$sc=count($cx->depths);return ' <tr class="'.(LR::ifvar($blockParams[0][0]['deleted'] ?? null) ? 'deleted' : '').' '.(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->data['index'] ?? null,$cx->depths[$sc-1]['selectedIndex'] ?? null], [], $in)) ? 'selected' : '').'" data-id="'.LR::encq($blockParams[0][0]['id'] ?? null).'">
62+
'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$in['items'] ?? null], [], $in, function($cx, $in, array $blockParams = []) {$sc=count($cx->depths);return ' <tr class="'.(LR::ifvar($blockParams[0][0]['deleted'] ?? null) ? 'deleted' : '').' '.(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$cx->data['index'] ?? null,$cx->depths[$sc-1]['selectedIndex'] ?? null], [], $in)) ? 'selected' : '').'" data-id="'.LR::encq(LR::dv($blockParams[0][0]['id'] ?? null)).'">
6363
'.LR::hbbch($cx, $cx->helpers['each'], 'each', [$cx->depths[$sc-1]['columns'] ?? null], [], $in, function($cx, $in) use ($blockParams) {$sc=count($cx->depths);return ' <td class="col-'.LR::encq(LR::cv($in, 'key')).(LR::ifvar($blockParams[0][0]['highlighted'] ?? null) ? ' highlighted' : '').'">
6464
'.(LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$in['type'] ?? null,'boolean'], [], $in)) ? ' '.(LR::ifvar(LR::hbch($cx, $cx->helpers['lookup'], 'lookup', [$blockParams[0][0],$in['key'] ?? null], [], $in)) ? '<i class="icon-check text-success"></i>' : '<i class="icon-times text-muted"></i>').'
6565
' : (LR::ifvar(LR::hbch($cx, $cx->helpers['eq'], 'eq', [$in['type'] ?? null,'date'], [], $in)) ? ' <time datetime="'.LR::encq(LR::hbch($cx, $cx->helpers['formatDate'], 'formatDate', [LR::hbch($cx, $cx->helpers['lookup'], 'lookup', [$blockParams[0][0],$in['key'] ?? null], [], $in),'Y-m-d'], [], $in)).'">'.LR::encq(LR::hbch($cx, $cx->helpers['formatDate'], 'formatDate', [LR::hbch($cx, $cx->helpers['lookup'], 'lookup', [$blockParams[0][0],$in['key'] ?? null], [], $in),$in['format'] ?? null], [], $in)).'</time>
@@ -90,10 +90,10 @@ class="btn btn-sm btn-'.LR::encq(LR::cv($in, 'style')).'"
9090
'.LR::p($cx, 'pagination', $in, [], ' ').'
9191
' : '
9292
'.' <div class="empty-state">
93-
'.(LR::ifvar($in['emptyState']['illustration'] ?? null) ? LR::raw($in['emptyState']['illustration'] ?? null) : '').'
94-
<h3>'.LR::encq($in['emptyState']['heading'] ?? null).'</h3>
95-
'.(LR::ifvar($in['emptyState']['message'] ?? null) ? '<p>'.LR::encq($in['emptyState']['message'] ?? null).'</p>' : '').'
96-
'.(LR::ifvar($in['emptyState']['action'] ?? null) ? ' <a href="'.LR::encq($in['emptyState']['action']['url'] ?? null).'" class="btn btn-primary">'.LR::encq($in['emptyState']['action']['label'] ?? null).'</a>
93+
'.(LR::ifvar($in['emptyState']['illustration'] ?? null) ? LR::raw(LR::dv($in['emptyState']['illustration'] ?? null)) : '').'
94+
<h3>'.LR::encq(LR::dv($in['emptyState']['heading'] ?? null)).'</h3>
95+
'.(LR::ifvar($in['emptyState']['message'] ?? null) ? '<p>'.LR::encq(LR::dv($in['emptyState']['message'] ?? null)).'</p>' : '').'
96+
'.(LR::ifvar($in['emptyState']['action'] ?? null) ? ' <a href="'.LR::encq(LR::dv($in['emptyState']['action']['url'] ?? null)).'" class="btn btn-primary">'.LR::encq(LR::dv($in['emptyState']['action']['label'] ?? null)).'</a>
9797
' : '').' </div>
9898
9999
').'

0 commit comments

Comments
 (0)