Esempio n. 1
0
  ================================================== -->
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">

	<!-- CSS
  ================================================== -->
	<link rel="stylesheet" href="asset/css/skeleton.css">
	<link rel="stylesheet" href="asset/css/layout.css">

</head>
<body>

	<!-- Primary Page Layout
	================================================== -->

	' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('content'))) . '

	<div class="primary container">
		<div class="sixteen columns footer">
			<span class="copyright">
				Created by <a href="https://twitter.com/vamaera" target="_blank">@vamaera</a>
		  Code licensed under the MIT
			</span>
		</div>

	</div>
	
	<script src="ctrl/root.js"></script>

<!-- End Document
================================================== -->
Esempio n. 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 'A
' . LCRun3::sec($cx, $in, $in, true, function ($cx, $in) {
        return '=> ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('key'))) . ' , ' . LCRun3::encq($cx, $in) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('index'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('first'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('last'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('index'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('key'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('first'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('last'))) . ' # ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent']['_parent'], array('index'))) . ' - ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent']['_parent'], array('key'))) . ' .
' . LCRun3::sec($cx, $in, $in, true, function ($cx, $in) {
            return ' =>> ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('key'))) . ' , ' . LCRun3::encq($cx, $in) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('index'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('first'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('last'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('index'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('key'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('first'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('last'))) . ' # ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent']['_parent'], array('index'))) . ' - ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent']['_parent'], array('key'))) . ' .
' . LCRun3::sec($cx, $in, $in, true, function ($cx, $in) {
                return '  =>>> ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('key'))) . ' , ' . LCRun3::encq($cx, $in) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('index'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('first'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('last'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('index'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('key'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('first'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent'], array('last'))) . ' # ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent']['_parent'], array('index'))) . ' - ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars']['_parent']['_parent'], array('key'))) . ' .
';
            }) . '';
        }) . '';
    }) . '';
};
Esempio n. 3
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 '<div class="yui3-u-1-2 member-status">
 <ul class="h-list">
' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('login_status')), $in, function ($cx, $in) {
        return '' . (LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('is_login'))) ? '   <li><a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('edit_account_link'))) . '">Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('username'))) . '</a></li>
   <li><a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('logut_link'))) . '">Logout</a></li>
' : '') . '' . (!LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('is_login'))) ? '   <li>New User? <a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('register_link'))) . '">Register Now</a></li>
   <li><a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('login_link'))) . '">Login</a></li>
' : '') . '';
    }) . '  <li><a>About Auction</a></li>
 </ul>
</div>
';
};
<?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('helper1' => function ($args, $named) {
        $u = isset($args[0]) ? $args[0] : 'undefined';
        $t = isset($args[1]) ? $args[1] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>";
    }), 'blockhelpers' => array(), 'hbhelpers' => array(), 'partials' => array(), 'scopes' => array($in), 'sp_vars' => array('root' => $in));
    return '' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url2')), LCRun3::v($cx, $in, array('text'))), array()), 'raw')), array()), 'raw') . '

';
};
Esempio n. 5
0
each partial....
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, true, function ($cx, $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::encq($cx, LCRun3::v($cx, $in, array('empty_var'))) . '中文
  Test \\on \'spacing in mustache: Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
' . '--
' . '  <div class="yui3-u-1-2 member-status">
   <ul class="h-list">
' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('login_status')), $in, function ($cx, $in) {
            return '' . (LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('is_login'))) ? '     <li><a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('edit_account_link'))) . '">Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('username'))) . '</a></li>
     <li><a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('logut_link'))) . '">Logout</a></li>
' : '') . '' . (!LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('is_login'))) ? '     <li>New User? <a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('register_link'))) . '">Register Now</a></li>
     <li><a href="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('login_link'))) . '">Login</a></li>
' : '') . '';
        }) . '    <li><a>About Auction</a></li>
   </ul>
  </div>
' . '';
    }) . 'end each.

if + with + partial:
' . (LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('test'))) ? 'w>' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('people')), $in, function ($cx, $in) {
        return '
  p>' . '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::encq($cx, LCRun3::v($cx, $in, array('empty_var'))) . '中文
Test \\on \'spacing in mustache: Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
' . '<
<w';
    }) . '
' : '') . '';
};
Esempio n. 6
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 '
Children for ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ':

' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('child')), $in, true, function ($cx, $in) {
        return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('key')), $in, function ($cx, $in) {
            return '       The value is = ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('key'))) . ' !!
';
        }, function ($cx, $in) {
            return '        key is empty or null
';
        }) . '';
    }, function ($cx, $in) {
        return '  ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ' has no children.
';
    }) . '';
};
Esempio n. 7
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 '' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('grand_parent_id'))) . '
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('parent_contexts')), $in, false, function ($cx, $in) {
        return '  ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('parent_id'))) . ' (' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('grand_parent_id'))) . ')
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('child_contexts')), $in, false, function ($cx, $in) {
            return '    ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('child_id'))) . ' (' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('parent_id'))) . ' << ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('grand_parent_id'))) . ')
';
        }) . '';
    }) . '';
};
<?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 '<ul>
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people')), $in, true, function ($cx, $in) {
        return ' <li>' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('index'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('key'))) . ' : ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' [from ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('first'))) . ' to ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['sp_vars'], array('last'))) . ']</li>
';
    }) . '</ul>
';
};
Esempio n. 9
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'))) . '!!
' : '') . '';
};
Esempio n. 10
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('winner', 'name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winner', 'value'))) . '!
We have $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('award', 'first', 'value'))) . ' for ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('award', 'first', 'name'))) . ' award!!
Raw dot test: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winner', 'name'))) . ' ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('award', 'first', 'value'))) . ' for ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('award', 'first', 'name'))) . '
';
};
Esempio n. 11
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('helper1' => function ($args, $named) {
        $u = isset($args[0]) ? $args[0] : 'undefined';
        $t = isset($args[1]) ? $args[1] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>";
    }), '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'))) . '!

. Test 1: ' . (LCRun3::ifvar($cx, '') ? 'OK' : '') . ' !!
. Test 2: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test', 'a b'))) . ' !!
. Test 3: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('te"st', 'cd'))) . ' !!
. Test 4: ' . (LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('te"st'))) ? 'OK' : '') . ' !!
. Test 5: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test & OK'), array()), 'raw') . ' !!
. Test 6: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test'), array()), 'raw') . ' !!
. Test 7: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test & OK'), array()), 'encq') . ' !!
. Test 8: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test'), array()), 'encq') . ' !!
. Test 9: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this.is.atest'), array()), 'encq') . ' !!
';
};
Esempio n. 12
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'))) . '!
<ul>
' . LCRun3::sec($cx, $in, $in, true, function ($cx, $in) {
        return ' <li>' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is a ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . ' (' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('value'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('end'))) . ')</li>
';
    }) . '</ul>
' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('end'))) . '
' . LCRun3::sec($cx, $in, $in, true, function ($cx, $in) {
        return ' THIS:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is a ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('gender'))) . '
 PARENT: ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('value'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('end'))) . ' END ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('end'))) . ' NAME ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '
';
    }) . 'Section This:
' . LCRun3::sec($cx, $in, $in, false, function ($cx, $in) {
        return ' <li>X~' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is a ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . ' (' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('value'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('end'))) . ')</li>
';
    }) . 'Section Var:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people')), $in, false, function ($cx, $in) {
        return ' <li>XXXVAR' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is a ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . ' (' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('value'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('end'))) . ')</li>
';
    }) . 'Each Var:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people')), $in, true, function ($cx, $in) {
        return ' <li>XXX-EACH-VAR' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is a ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . ' (' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('name'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('value'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('end'))) . ')</li>
';
    }) . '';
};
Esempio n. 13
0
~IF~
   ' . (LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('testval'))) ? 'YES' : '') . '
   ' . (!LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('testval'))) ? 'NO' : '') . '
~SEC~
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('test2')), $in, false, function ($cx, $in) {
                return '    ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('loopval'))) . '
';
            }) . '~EACH~
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('test3')), $in, true, function ($cx, $in) {
                return '    ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('loopval'))) . '
';
            }) . '~END~
';
        }) . 'WITH~
';
    }) . '_WITH PATH_
' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('login_status', 'test')), $in, function ($cx, $in) {
        return 'XTEST: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('testval'))) . ' - ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('textval'))) . '
IF: ' . (LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('testval'))) ? 'YES~' : '') . '' . (!LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('testval'))) ? 'NO!' : '') . '
SECTION::' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('test2')), $in, false, function ($cx, $in) {
            return ' - loop: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('loopval'))) . '';
        }) . '
EACH::' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('test3')), $in, true, function ($cx, $in) {
            return '	lp:' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('loopval'))) . '';
        }) . '
END!
';
    }) . ' </ul>
</div>
';
};
Esempio n. 14
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 '<div id="yauitqna">
    <table>
' . LCRun3::sec($cx, $in, $in, true, function ($cx, $in) {
        return '        <tr>
            <td class="first" colspan="2">
            <h4><a name="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '"></a>問題 $p</h4>
            ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('yid'))) . ' 暱稱:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('userName'))) . ' ( ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('recommend'))) . ' )<p>' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('comment'))) . '</p>
            </td>
            <td class="asktime">$askTime</td>
        </tr>                               
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('replyer')), $in, true, function ($cx, $in) {
            return '                <tr class="gray">
                    <td class="first" colspan="2">
                        <h4><a name="579997583"></a>答覆</h4>
                        <p><a href="http://tw.user.bid.yahoo.com/tw/user/Y7379251092">EYESCREAM</a>
                        ( <a href="http://tw.user.bid.yahoo.com/tw/show/rating?userID=Y7379251092">56141</a>
                        )</p>
                        <p>Lady您好:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('comment'))) . '</p>
                    </td>
                    <td class="asktime">' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('replyTime'))) . '</td>
                </tr>
';
        }) . '';
    }) . '    </table>
</div>
';
};
Esempio n. 15
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 '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('empty')), $in, function ($cx, $in) {
        return '
';
    }, function ($cx, $in) {
        return '' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('data')), $in, true, function ($cx, $in) {
            return '
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('child')), $in, true, function ($cx, $in) {
                return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('key')), $in, function ($cx, $in) {
                    return '       The value is = ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('key'))) . ' !!
';
                }, function ($cx, $in) {
                    return '        key is empty or null
';
                }) . '
    ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('fake'))) . '

';
            }) . '';
        }) . '
';
    }) . '';
};
Esempio n. 16
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'))) . '!
<ul>
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people', 'boss')), $in, true, function ($cx, $in) {
        return ' <li>' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is a ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . ' (' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . ', ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('end'))) . ')</li>
';
    }) . '</ul>
' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('end'))) . '
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people', 'boss')), $in, false, function ($cx, $in) {
        return ' THIS:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is a ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('gender'))) . '
 PARENT: ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('name'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('value'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('end'))) . '
';
    }) . '';
};
Esempio n. 17
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'))) . '!!
';
    }) . '';
};
Esempio n. 18
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'))) . '!

. ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('!'))) . ' !!
. KAKA ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('! # % & ( ) * + , . / ; < = > @ [ \\ ^ ` { | } ~'))) . '
. K ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('!['))) . ' X
. Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winners', '0', 'name'))) . ' !! Won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winners', '0', 'value'))) . ' now~~
. Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winners', '1', 'name'))) . ' !! Won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winners', '1', 'value'))) . ' later~~
. No ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winners', '!', 'name'))) . ' !!
';
};
Esempio n. 19
0
  NOTE A: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' : ' . LCRun3::encq($cx, $in) . ' != ' . LCRun3::encq($cx, $cx['scopes'][count($cx['scopes']) - 1]) . '
S~' . LCRun3::encq($cx, $in) . '~' . LCRun3::bch($cx, 'helper3', array(array(), array()), $in, false, function ($cx, $in) {
            return '
  NOTE B: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' : ' . LCRun3::encq($cx, $in) . ' != ' . LCRun3::encq($cx, $cx['scopes'][count($cx['scopes']) - 1]) . '
';
        }) . 'E
';
    }) . '
. Test 4: ' . LCRun3::bch($cx, 'helper3', array(array(), array()), $in, false, function ($cx, $in) {
        return 'ABC';
    }) . '

. Test 5: ' . LCRun3::bch($cx, 'helper4', array(array(), array('val' => '123', 'odd' => '1')), $in, false, function ($cx, $in) {
        return '~~~' . LCRun3::encq($cx, $in) . '~~~';
    }) . '

. Test 6: ' . LCRun3::bch($cx, 'helper4', array(array(), array('val' => LCRun3::v($cx, $in, array('people')), 'odd' => LCRun3::v($cx, $in, array('test')))), $in, false, function ($cx, $in) {
        return 'TRY~~~' . LCRun3::encq($cx, $in) . ' , ' . LCRun3::encq($cx, $cx['scopes'][count($cx['scopes']) - 1]) . ' ~~~';
    }) . '

. Test 7: ' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people')), $in, true, function ($cx, $in) {
        return ' 
 OK! 1 ' . LCRun3::bch($cx, 'helper3', array(array(), array('val' => LCRun3::v($cx, $in, array('name')), 'odd' => LCRun3::v($cx, $in, array('value')))), $in, false, function ($cx, $in) {
            return 'TRY ?!??!!~~~' . LCRun3::encq($cx, $in) . ' , ' . LCRun3::encq($cx, $cx['scopes'][count($cx['scopes']) - 1]) . ' ~~~';
        }) . '
 OK! ' . LCRun3::bch($cx, 'helper4', array(array(), array('val' => LCRun3::v($cx, $in, array('name')), 'odd' => LCRun3::v($cx, $in, array('value')))), $in, false, function ($cx, $in) {
            return 'TRY ?!~~~' . LCRun3::encq($cx, $in) . ' , ' . LCRun3::encq($cx, $cx['scopes'][count($cx['scopes']) - 1]) . ' ~~~';
        }) . '
';
    }) . '';
};
Esempio n. 20
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'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
Hello ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', you have just won $' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . '!
';
};
Esempio n. 21
0
    }) . 'end each.

##2 start each+if:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, true, function ($cx, $in) {
        return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('test')), $in, function ($cx, $in) {
            return '' . '  Name:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', Value:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . ', This: ' . LCRun3::encq($cx, $in) . ', Test: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test'))) . '
' . '';
        }) . '';
    }) . 'end each+if.

##3 start each+if+with:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, true, function ($cx, $in) {
        return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('test')), $in, function ($cx, $in) {
            return '' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('people')), $in, function ($cx, $in) {
                return '' . '   Name:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', Value:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . ', This: ' . LCRun3::encq($cx, $in) . ', Test: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test'))) . '
' . '';
            }) . '';
        }) . '';
    }) . 'end each+if+with.

##4 start each+with+if:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, true, function ($cx, $in) {
        return '' . LCRun3::wi($cx, LCRun3::v($cx, $in, array('people')), $in, function ($cx, $in) {
            return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('test')), $in, function ($cx, $in) {
                return '' . '   Name:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ', Value:' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('value'))) . ', This: ' . LCRun3::encq($cx, $in) . ', Test: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('test'))) . '
' . '';
            }) . '';
        }) . '';
    }) . 'end each+with+if.
';
};
Esempio n. 22
0
			color: #29AECB;
			text-decoration: none;
			border-bottom: solid 1px #eee;
		}
		ul{
			padding: 0;
			margin: 0;
		}
		li{
			list-style-type: none;
			padding: 5px;
			border-bottom: solid 1px #eee;
		}
	</style>
</head>
<body>
	<h1>List User</h1>
	<ul>
	<!-- Each User -->
		<!-- print user.nama, link user.id -->
		' . LCRun3::hbch($cx, 'formatDate', array(array(LCRun3::v($cx, $in, array('date')), 'y m d'), array()), 'encq', '$in') . '
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('user')), $in, true, function ($cx, $in) {
        return '' . (!LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('show'))) ? '				<a href="./user/' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '"><li>' . LCRun3::hbch($cx, 'json', array(array($in), array()), 'encq', '$in') . ' </li></a>
' : '				<li>' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('nama'))) . '</li>
') . '
';
    }) . '
	</ul>
</body>
</html>';
};
Esempio n. 23
0
</head>
<body>
	' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('tes'))) . '
	' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('tos'))) . '
' . '	<!DOCTYPE html>
	<html>
	<head>
		<title>List User</title>
		<style>
			body{
				font-family: \'Calibri\' , sans-serif;
				color: #444;
				padding: 100px;
				font-size: 1.2em;
			}
		</style>
	</head>
	<body>
	<pre>	
	' . LCRun3::hbch($cx, 'json', array(array(LCRun3::v($cx, $in, array('userId'))), array()), 'encq', '$in') . '
	</pre>
		<h1>nama : ' . LCRun3::hbch($cx, 'upperCase', array(array(LCRun3::v($cx, $in, array('userId', 'nama'))), array()), 'encq', '$in') . '</h1>
		<h3>id : ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('userId', 'id'))) . '</h3>
	
	
	
		<h3>' . LCRun3::hbch($cx, 'formatDate', array(array(LCRun3::v($cx, $in, array('date')), 'y:m:d'), array()), 'encq', '$in') . '</h3>
	</body>
	</html>' . '</body>
</html>';
};
Esempio n. 24
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('helper1' => function ($args, $named) {
        $u = isset($args[0]) ? $args[0] : 'undefined';
        $t = isset($args[1]) ? $args[1] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>";
    }, 'helper2' => function ($args, $named) {
        $u = isset($named['url']) ? jsraw($named['url']) : 'undefined';
        $t = isset($named['text']) ? jsraw($named['text']) : 'undefined';
        $x = isset($named['ur"l']) ? $named['ur"l'] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>({$x})";
    }), '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'))) . '!

. Test 1: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test & OK'), array()), 'raw') . ' !!
. Test 2: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test'), array()), 'raw') . ' !!
. Test 3: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test & OK'), array()), 'encq') . ' !!
. Test 3: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'string/arg.css'), array()), 'encq') . ' !!
. Test 4: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), 'this is a test'), array()), 'encq') . ' !!
. Test 5: ' . LCRun3::ch($cx, 'helper2', array(array(), array('url' => LCRun3::v($cx, $in, array('url')), 'text' => 'this is a test')), 'encq') . ' !!
. Test 6: ' . LCRun3::ch($cx, 'helper2', array(array(), array('ur"l' => LCRun3::v($cx, $in, array('url')), 'text' => 'this is a test')), 'encq') . ' !!
. Test 7: ' . LCRun3::ch($cx, 'helper2', array(array(), array('url' => '0', 'text' => '10')), 'encq') . ' !!
. Test 8: ' . LCRun3::ch($cx, 'helper2', array(array(), array('url' => '-1', 'text' => '1.3')), 'encq') . ' !!
. Test 9: ' . LCRun3::ch($cx, 'helper2', array(array(), array('url' => true, 'text' => false)), 'encq') . ' !!
';
};
Esempio n. 25
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'))) . '!
Hello original ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('name'))) . ' , the value is ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('value'))) . '
Hello mustache ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('name'))) . ' , the value is ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('value'))) . '
';
};
Esempio n. 26
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'))) . '!

##0 start section:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, false, function ($cx, $in) {
        return '  - EACH 1- ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '
';
    }) . 'end section.

##1 start each:
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, true, function ($cx, $in) {
        return '  - EACH 2 - ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '
';
    }) . 'end each.

##3 Index
Index ?: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winners', 'name'))) . '
Index 0: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winners', '0', 'name'))) . '
Index 1: ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('winners', '1', 'name'))) . '
';
};
Esempio n. 27
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('helper1' => function ($args, $named) {
        $u = isset($args[0]) ? $args[0] : 'undefined';
        $t = isset($args[1]) ? $args[1] : 'undefined';
        return "<a href=\"{$u}\">{$t}</a>";
    }), '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'))) . '!

. Test 1: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), LCRun3::v($cx, $in, array('text'))), array()), 'raw') . '
. Test 2: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), LCRun3::v($cx, $in, array('text'))), array()), 'encq') . '
. Test 3: ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('test', 'url')), LCRun3::v($cx, $in, array('test', 'text'))), array()), 'encq') . '
. Test 4: ' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('people')), $in, true, function ($cx, $in) {
        return '
  * ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('url')), LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))), array()), 'encq') . ' <= ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('url'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('url'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))) . ' !!
  * ' . LCRun3::ch($cx, 'helper1', array(array(LCRun3::v($cx, $in, array('url')), LCRun3::v($cx, $in, array('text'))), array()), 'encq') . ' <= ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('url'))) . ' , ' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))) . ' , ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('url'))) . ', ' . LCRun3::raw($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('text'))) . ' :D
';
    }) . '';
};
Esempio n. 28
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 '' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('specs')), $in, true, function ($cx, $in) {
        return '   <div class="item-spec">
' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('options')), $in, true, function ($cx, $in) {
            return '' . LCRun3::ifv($cx, LCRun3::v($cx, $in, array('icon')), $in, function ($cx, $in) {
                return '        <div class="spec">
            <div class="spec-overlay"></div>
            <input type="radio" id="spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" value="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" name="' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '" alt="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '" data-name="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '"/>
            <label class="spec-label icon" for="spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" style="background-image:url(' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('icon'))) . ');">
            </label>
        </div>
';
            }, function ($cx, $in) {
                return '        <div class="spec">
            <div class="spec-overlay"></div>
            <input type="radio" id="spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" value="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '" name="' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '" data-name="' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '"/>
            <label class="spec-label" for="spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '">' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . '</label>
        </div>
';
            }) . '        <script>
            document.getElementById(\'spec-' . LCRun3::encq($cx, LCRun3::v($cx, $cx['scopes'][count($cx['scopes']) - 1], array('id'))) . '-' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('id'))) . '\').className += \'hidden\';
        </script>
';
        }) . '    </div>
';
    }) . '';
};
Esempio n. 29
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'))) . '!
' . (!LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('test'))) ? 'Yes! ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . '
' : '') . '' . (!LCRun3::ifvar($cx, LCRun3::v($cx, $in, array('test'))) ? '2nd If, ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is ' . LCRun3::raw($cx, LCRun3::v($cx, $in, array('gender'))) . '
' : 'Else test, ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('name'))) . ' is ' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('gender'))) . '
') . '' . LCRun3::encq($cx, LCRun3::v($cx, $in, array('end'))) . '
';
};
Esempio n. 30
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'))) . '!
Winners: ' . LCRun3::sec($cx, LCRun3::v($cx, $in, array('winners')), $in, false, function ($cx, $in) {
        return '' . LCRun3::encq($cx, $in) . '(' . LCRun3::raw($cx, $in) . ') = ' . LCRun3::encq($cx, $in) . '(' . LCRun3::raw($cx, $in) . ')';
    }) . '
';
};