projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20aa490
)
JsTemplate.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 17 Nov 2011 09:34:05 +0000
(17:34 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 17 Nov 2011 09:34:05 +0000
(17:34 +0800)
JsTemplate.php
patch
|
blob
|
history
diff --git
a/JsTemplate.php
b/JsTemplate.php
index
5be053e
..
1fa183b
100644
(file)
--- a/
JsTemplate.php
+++ b/
JsTemplate.php
@@
-102,8
+102,8
@@
class Pman_Core_JsTemplate extends Pman {
$ret[] = "var $name = function(t) {\n var ret=[];\n";
$funcs = array();
- $infunc = false;
-
+ // do not allow nested functions..?
+ $fstart = 0;
$indent = 1;
foreach($ar as $item) {
$in = str_repeat(" ", $indent);