<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array(), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return '<h1>' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('header'))) . '</h1>
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('notEmpty')), $in, false, function ($cx, $in) {
        return '<ul>
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('item')), $in, false, function ($cx, $in) {
            return '' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('current')), $in, false, function ($cx, $in) {
                return '    <li><strong>' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '</strong></li>
';
            }) . '' . (LCRun3::isec($cx, LCRun3::v($cx, $in, array('current'))) ? '    <li><a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('url'))) . '">' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '</a></li>
' : '') . '';
        }) . '</ul>
';
    }) . '' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('isEmpty')), $in, false, function ($cx, $in) {
        return '<p>The list is empty.</p>
';
    }) . '';
};
Example #2
0
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array(), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return 'Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
This is next line.
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('test')), $in, false, function ($cx, $in) {
        return 'This is true! won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!!
';
    }) . '' . (LCRun3::isec($cx, LCRun3::v($cx, $in, array('test'))) ? 'No, this is fake! not win $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!!
' : '') . '';
};
<?php

return function ($in, $debugopt = 1) {
    $cx = array('flags' => array('jstrue' => true, 'jsobj' => true, 'spvar' => true, 'prop' => true, 'method' => false, 'mustlok' => false, 'mustsec' => false, 'echo' => false, 'debug' => $debugopt), 'constants' => array(), 'helpers' => array(), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return 'Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winner', 'name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winner', 'value'))) . '!
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('test')), $in, false, function ($cx, $in) {
        return 'Line 1
';
    }) . 'This is a test, test = ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test'))) . '
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('test')), $in, false, function ($cx, $in) {
        return 'Line 2
';
    }) . '' . (LCRun3::isec($cx, LCRun3::v($cx, $in, array('test'))) ? 'Line 3
' : '') . '' . (LCRun3::isec($cx, LCRun3::v($cx, $in, array('test'))) ? 'Line 4
' : '') . '' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('test')), $in, false, function ($cx, $in) {
        return 'Line 5
';
    }) . '' . (LCRun3::isec($cx, LCRun3::v($cx, $in, array('test'))) ? 'Line 6
' : '') . '---- double section ----
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('sec')), $in, false, function ($cx, $in) {
        return '' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ':' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('sec')), $in, false, function ($cx, $in) {
            return '-- ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '--';
        }) . '
';
    }) . '';
};