$ff = HTML_FlexyFramework::get();
$pr = $ff->project;
+
+ $mods = $this->modulesList();
+ print_r($mods);
+
$ar = explode(PATH_SEPARATOR, $ff->HTML_Template_Flexy['templateDir']);
$prefix = $pr == 'Pman' ? 'Pman.' : '';
continue;
case ($inscript && ($item != '{end:}')):
- $ret[] = $item;
+ $ret[count($ret)-1] .= $item;
continue;
case ($inscript && ($item == '{end:}')):
case ($item == '{script:}'):
$inscript = true;
+ $ret[] = '';
continue;
case ($item[1] == '!'):
$indent++;
continue;
+ case (substr($item,1,5) == 'else:'):
+ $indent--;
+ $in = str_repeat(" ", $indent);
+ $ret[] = $in . "} else { ";
+ $indent++;
+ continue;
+
case (substr($item,1,4) == 'end:'):
$indent--;
$in = str_repeat(" ", $indent);
continue;
}
if (substr($item,-3,2) == ':b') {
- $ret[] = $in . "ret += Roo.util.Format.htmlEncode(". substr($item,1,-1).').split("\n").join("<br/>\n");';
+ $ret[] = $in . "ret += Roo.util.Format.htmlEncode(". substr($item,1,-3).').split("\n").join("<br/>\n");';
continue;
}
$ret[] = $in . "ret += Roo.util.Format.htmlEncode(". substr($item,1,-1).');';
}
$in = str_repeat(" ", $indent);
- $ret[] = $in . "return ret.join('');\n}\n";
+ $ret[] = $in . "return ret;\n}\n";
return $head . implode("\n",$funcs) . "\n\n" .implode("\n",$out) ;
//echo '<PRE>' . htmlspecialchars(implode("\n",$ret));