Reworking, simplifying, and speeding up cache implementation.

Fixing the infelicity where you couldn't have '|' and ':' inside
quoted modifier arguments.
This commit is contained in:
andrey
2001-01-31 22:42:05 +00:00
parent 95879edfa5
commit e66a4ac648
12 changed files with 321 additions and 294 deletions

View File

@@ -4,7 +4,9 @@ require("Smarty.class.php");
$smarty = new Smarty;
$smarty->cache_engine = false;
$smarty->caching = false;
$smarty->assign(now, time());
$smarty->assign("Name","Fred Irving Johnathan Bradley Peppergill");
$smarty->assign("FirstName",array("John","Mary","James","Henry"));
@@ -19,4 +21,11 @@ $smarty->assign("now",time());
$smarty->display("index.tpl");
function insert_foo($args)
{
extract($args);
return "test $arg1";
}
?>

View File

@@ -48,3 +48,5 @@ testing strip tags
</PRE>
test: {$now|date_format:"%I:%M %p"}
{insert name = foo arg1=5}