-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path016-hb-eachthis.php
37 lines (36 loc) · 1.86 KB
/
016-hb-eachthis.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php use \LightnCandy\SafeString as SafeString;use \LightnCandy\Runtime as LR;return function ($in = null, $options = null) {
$helpers = array();
$partials = array();
$cx = array(
'flags' => array(
'jstrue' => true,
'jsobj' => true,
'spvar' => true,
'prop' => true,
'method' => false,
'lambda' => false,
'mustlok' => false,
'mustlam' => false,
'echo' => false,
'partnc' => false,
'knohlp' => false,
'debug' => isset($options['debug']) ? $options['debug'] : 1,
),
'constants' => array(),
'helpers' => isset($options['helpers']) ? array_merge($helpers, $options['helpers']) : $helpers,
'partials' => isset($options['partials']) ? array_merge($partials, $options['partials']) : $partials,
'scopes' => array(),
'sp_vars' => isset($options['data']) ? array_merge(array('root' => $in), $options['data']) : array('root' => $in),
'blparam' => array(),
'partialid' => 0,
'runtime' => '\LightnCandy\Runtime',
);
return 'Hello '.LR::encq($cx, LR::v($cx, $in, isset($in) ? $in : null, array('name'))).', you have just won $'.LR::encq($cx, LR::v($cx, $in, isset($in) ? $in : null, array('value'))).'!
<ul>
'.LR::sec($cx, $in, null, $in, true, function($cx, $in) {return ' <li>'.LR::encq($cx, LR::v($cx, $in, isset($in) ? $in : null, array('name'))).' is a '.LR::encq($cx, LR::v($cx, $in, isset($in) ? $in : null, array('gender'))).'</li>
';}).'</ul>
- '.LR::encq($cx, LR::v($cx, $in, isset($in) ? $in : null, array('end'))).' -
'.LR::sec($cx, $in, null, $in, true, function($cx, $in) {return ' THIS:'.LR::encq($cx, LR::v($cx, $in, isset($in) ? $in : null, array('name'))).' is a '.LR::raw($cx, LR::v($cx, $in, isset($in) ? $in : null, array('gender'))).'
';}).'==
';
}; ?>