* Template.php:
(BSTemplate::_parseTokens): If the tag is <%- convert it to <?php echo
- New: Added an ability to quick-set API information via an array with BSApi::setArray()
- New: Made many private members protected or public
- Change: Added BSPrinterAbstract::__toString() that merely calls paint()
+- Change: BSTemplate is completely redone
else if (sizeof($stack) == 1)
{
$open = array_pop($stack);
- $replace = '<?php ' . BSFunctions::substring($template, $open + 2, $i) . ' ?>';
+ $echo = ($template[$open + 2] == '-' ? 'echo ' : '');
+ $replace = '<?php ' . $echo . BSFunctions::substring($template, $open + ($echo ? 3 : 2), $i) . ' ?>';
$template = substr_replace($template, $replace, $open, ($i + 2) - $open);
}
// just pop it off