From d88ab672603255236eef73d8ba5bab434a25a0c0 Mon Sep 17 00:00:00 2001 From: "Uwe.Tews" Date: Sun, 22 Mar 2009 17:03:59 +0000 Subject: [PATCH] - delete obsolete files --- demo/configs/test.conf | 22 ----- demo/templates/header.tpl | 5 - demo/templates/include.tpl | 3 - demo/templates/index.tpl | 10 -- demo/templates/nocache_inc.tpl | 2 - demo/templates/test_debug.tpl | 3 - demo/templates/test_if.tpl | 5 - demo/templates/test_inc.tpl | 25 ----- demo/templates/test_inc2.tpl | 6 -- demo/templates/test_insert.tpl | 3 - demo/templates/test_nocache.tpl | 11 --- demo/templates/test_nocache2.tpl | 9 -- demo/templates/test_object.tpl | 6 -- demo/templates/test_object2.tpl | 5 - demo/templates/test_parser.tpl | 7 -- demo/templates/test_plugin.tpl | 7 -- demo/templates/test_security.tpl | 7 -- demo/templates/test_smoke.tpl | 159 ------------------------------- 18 files changed, 295 deletions(-) delete mode 100644 demo/configs/test.conf delete mode 100644 demo/templates/header.tpl delete mode 100644 demo/templates/include.tpl delete mode 100644 demo/templates/index.tpl delete mode 100644 demo/templates/nocache_inc.tpl delete mode 100644 demo/templates/test_debug.tpl delete mode 100644 demo/templates/test_if.tpl delete mode 100644 demo/templates/test_inc.tpl delete mode 100644 demo/templates/test_inc2.tpl delete mode 100644 demo/templates/test_insert.tpl delete mode 100644 demo/templates/test_nocache.tpl delete mode 100644 demo/templates/test_nocache2.tpl delete mode 100644 demo/templates/test_object.tpl delete mode 100644 demo/templates/test_object2.tpl delete mode 100644 demo/templates/test_parser.tpl delete mode 100644 demo/templates/test_plugin.tpl delete mode 100644 demo/templates/test_security.tpl delete mode 100644 demo/templates/test_smoke.tpl diff --git a/demo/configs/test.conf b/demo/configs/test.conf deleted file mode 100644 index 80cfea45..00000000 --- a/demo/configs/test.conf +++ /dev/null @@ -1,22 +0,0 @@ -title = Welcome to Smarty! -cutoff_size = 40 -bold = false -pageTitle = "This is mine" -bodyBgColor = '#eeeeee' -tableBorderSize = 3 -tableBgColor = "#bbbbbb" -rowBgColor = #cccccc - -Intro = """This is a value that spans more - than one line. you must enclose - it in triple quotes.""" - -Quote1 = """'value should contain a -sigle quote'""" - -Quote2 = """ "value should contain a " double quote" """ - -[setup] -bold = true - -[params] diff --git a/demo/templates/header.tpl b/demo/templates/header.tpl deleted file mode 100644 index f161a929..00000000 --- a/demo/templates/header.tpl +++ /dev/null @@ -1,5 +0,0 @@ -This is the header - -gee is {$gee} foo is {$foo} - -done with header diff --git a/demo/templates/include.tpl b/demo/templates/include.tpl deleted file mode 100644 index 56088dc5..00000000 --- a/demo/templates/include.tpl +++ /dev/null @@ -1,3 +0,0 @@ - -Include file -
{assign var=inc value='assign include'}{$inc} diff --git a/demo/templates/index.tpl b/demo/templates/index.tpl deleted file mode 100644 index 2398756f..00000000 --- a/demo/templates/index.tpl +++ /dev/null @@ -1,10 +0,0 @@ -This is an example of a compiled template. - -$foo = {$foo} -$foo[0] = {$foo[0]} -$foo[1] = {$foo[1]} -$foo[2] = {$foo[2]} - -function: - -End Test diff --git a/demo/templates/nocache_inc.tpl b/demo/templates/nocache_inc.tpl deleted file mode 100644 index 81f5c359..00000000 --- a/demo/templates/nocache_inc.tpl +++ /dev/null @@ -1,2 +0,0 @@ -
This is from nocache_inc.tpl -
cached time is {time()} diff --git a/demo/templates/test_debug.tpl b/demo/templates/test_debug.tpl deleted file mode 100644 index b55eeb49..00000000 --- a/demo/templates/test_debug.tpl +++ /dev/null @@ -1,3 +0,0 @@ - -Test debug -{debug} diff --git a/demo/templates/test_if.tpl b/demo/templates/test_if.tpl deleted file mode 100644 index d7a00d49..00000000 --- a/demo/templates/test_if.tpl +++ /dev/null @@ -1,5 +0,0 @@ -Test of if tags
-{foreach item=value from=$values} -Value of {$value} is {if $value<10} less then 10 {elseif ($value GT 100) AND ($value <= 500)} something between 100 and 500 {else} somthing else {/if}
-{/foreach} - diff --git a/demo/templates/test_inc.tpl b/demo/templates/test_inc.tpl deleted file mode 100644 index 068017e7..00000000 --- a/demo/templates/test_inc.tpl +++ /dev/null @@ -1,25 +0,0 @@ -Test of { include } and local/global variable scope -
the original value of $foo = {$foo} -
-{assign var=foo2 value='yzx'} -
foo2 before { include } = {$foo2} -{include file='test_inc2.tpl'} -
-
Here we are back in test_inc.tpl -
$foo has its old value = {$foo} -
this is $foo2 a global variable created in test_inc2.tpl = {$foo2} -
{if isset($foo3)} $foo3 must be unknow here {/if} -
-
Test include with parent scope -{include file='test_inc2.tpl' scope='parent'} -
Here we are back in test_inc.tpl -
$foo has its new value = {$foo} -
this is $foo2 a global variable created in test_inc2.tpl = {$foo2} -
this is $foo3 a normal variable created in test_inc2.tpl = {$foo3} -
-
Test include with root scope -{include file='test_inc2.tpl' scope='root'} -
Here we are back in test_inc.tpl -
$foo has its new value = {$foo} -
this is $foo2 a global variable created in test_inc2.tpl = {$foo2} -
this is $foo3 a normal variable created in test_inc2.tpl = {$foo3} diff --git a/demo/templates/test_inc2.tpl b/demo/templates/test_inc2.tpl deleted file mode 100644 index c4b0ef65..00000000 --- a/demo/templates/test_inc2.tpl +++ /dev/null @@ -1,6 +0,0 @@ -
Here starts test_inc2.tpl -
$foo in test_inc2 before changing = {$foo} -{assign var=foo value="bah"} -
$foo in test_inc2 after changing = {$foo} -{assign var=foo2 value="bla" global=true} -{assign var=foo3 value="foo3 was set"} diff --git a/demo/templates/test_insert.tpl b/demo/templates/test_insert.tpl deleted file mode 100644 index 84d9074b..00000000 --- a/demo/templates/test_insert.tpl +++ /dev/null @@ -1,3 +0,0 @@ -Test of { insert } -
{insert name='test' foo='bar'} -
insert with assign {insert name='test' foo='bar' assign=var}{$var} diff --git a/demo/templates/test_nocache.tpl b/demo/templates/test_nocache.tpl deleted file mode 100644 index 39aba1ff..00000000 --- a/demo/templates/test_nocache.tpl +++ /dev/null @@ -1,11 +0,0 @@ -Test caching and nocache attribute -
cached time is {time()} -
nocached time by '{time() nocache=true}' {time() nocache=true} -
-
calling '{include file="nocache_inc.tpl" caching_lifetime=25}' {include file="nocache_inc.tpl" caching_lifetime=25} -
-
calling '{include file="nocache_inc.tpl" nocache=true}' {include file="nocache_inc.tpl" nocache=true} -{nocache} -{assign var=a value=1} -
{if $a < 5}{$a|truncate} lt 5{else}a ge 5{/if} -{/nocache} \ No newline at end of file diff --git a/demo/templates/test_nocache2.tpl b/demo/templates/test_nocache2.tpl deleted file mode 100644 index 9da14b6d..00000000 --- a/demo/templates/test_nocache2.tpl +++ /dev/null @@ -1,9 +0,0 @@ -Test caching and nocache attribute -
cached time is {$t1} -
nocached time is {$t2} -
-{$t1+$t1} {$t1+$t2} -
-{nocache} -{for $i=0;$i<10;$i++}{$i}{/for} -{/nocache} diff --git a/demo/templates/test_object.tpl b/demo/templates/test_object.tpl deleted file mode 100644 index 63004556..00000000 --- a/demo/templates/test_object.tpl +++ /dev/null @@ -1,6 +0,0 @@ - -Test methode chaining -{assign var=x value=33} -
{assign var=x2 value=10}{$person->object->setName('peter')->setAge($x+4)->introduce()} -
{$person->object->setAge($x+$x2)->setName('paul')->introduce()} - diff --git a/demo/templates/test_object2.tpl b/demo/templates/test_object2.tpl deleted file mode 100644 index 8d573d19..00000000 --- a/demo/templates/test_object2.tpl +++ /dev/null @@ -1,5 +0,0 @@ - -Test registered object -
{/test->hello} -
{/test->hello p1=1 p2=2} - diff --git a/demo/templates/test_parser.tpl b/demo/templates/test_parser.tpl deleted file mode 100644 index 3250958d..00000000 --- a/demo/templates/test_parser.tpl +++ /dev/null @@ -1,7 +0,0 @@ -Input form for parser testing
-
-Template input - - -
- diff --git a/demo/templates/test_plugin.tpl b/demo/templates/test_plugin.tpl deleted file mode 100644 index e550dd6e..00000000 --- a/demo/templates/test_plugin.tpl +++ /dev/null @@ -1,7 +0,0 @@ -Test of function plugin -{nocache} -{counter assign=foo start=10 skip=5} -
{$foo} -{counter} -
{$foo} -{/nocache} diff --git a/demo/templates/test_security.tpl b/demo/templates/test_security.tpl deleted file mode 100644 index e550dd6e..00000000 --- a/demo/templates/test_security.tpl +++ /dev/null @@ -1,7 +0,0 @@ -Test of function plugin -{nocache} -{counter assign=foo start=10 skip=5} -
{$foo} -{counter} -
{$foo} -{/nocache} diff --git a/demo/templates/test_smoke.tpl b/demo/templates/test_smoke.tpl deleted file mode 100644 index d88e2bcf..00000000 --- a/demo/templates/test_smoke.tpl +++ /dev/null @@ -1,159 +0,0 @@ -
SMARTY SMOKE TEST
-
-VARIABLE TESTS:
-
-$foo is {$foo}
-
-$baz[1] is {$baz[1]}
-
-$blah['b'] is {$blah['b']}
-
-$blah[$baz[1]] is {$blah[$baz[1]]}
-
-$foo.$baz[1] is {$foo.$baz[1]}
-
-$foo.$foo is {$foo.$foo}
-
-{"foo"}
-
-OBJECT TESTS:
-
-$myobj->foo is {$myobj->foo}
-
-$myobj->test is {$myobj->test}
-$myobj->test() is {$myobj->test()}
-$myobj->test(1) is {$myobj->test(1)}
-$myobj->test(1,'two') is {$myobj->test(1,'two')}
-$myobj->test(count($baz)) is {$myobj->test(count($baz))}
-$myobj->test($myobj->test(count($baz))) is {$myobj->test($myobj->test(count($baz)))}
-$myobj->test($foo|escape) is {$myobj->test($foo|escape)}
-
-PHP TESTS:
-
-
-COMMENT TESTS:
-
-{* this is a comment *}
-{* another $foo comment *}
-{* another  comment *}
-{* multi line
-   comment *}
-{* /* foo */ *}
-A{* comment *}B
-C
-D{* comment *}
-{* comment *}E
-F
-G{* multi
- line *}H
-I{* multi
-line *}
-J
-
-ASSIGN:
-
-A
-{assign var=zoo value="blah"}
-B
-C{assign var=zoo value="blah"}D
-E{assign var=zoo value="blah"}
-F
-G
-{assign var=zoo value="blah"}H
-{assign var=zoo value="joe{$myobj->test(1)}bar"}
-
-zoo is {$zoo}
-
-SPACING TESTS:
-
-{$foo}
-
-{$foo}{$foo}
-
-A{$foo}
-
-A{$foo}B
-
-{$foo}B
-
-IF TESTS:
-
-{if $foo eq "baz"}
-  IS BAZ
-{elseif $foo == "lala"}
-  IS LALA
-{else}
-  IS NONE
-{/if}
-
-{if $myint+5 EQ 9}
-  IS NINE
-{else}
-  IS NOT NINE
-{/if}
-
-{if $myint + 5 eq 9}
-  IS NINE
-{else}
-  IS NOT NINE
-{/if}
-
-{if count($baz)-2 eq 1}
-  IS ONE
-{else}
-  IS NOT ONE
-{/if}
-
-{if $foo.$foo2 eq "barbar2"}
-  IS BARBAR2
-{else}
-  IS NOT BARBAR2
-{/if}
-
-{if $not_logged}
-  NOT LOGGED
-{/if}
-
-{if "joe{$myobj->test(1)}bar"}
-  FOO
-{/if}
-
-TEST INCLUDE:
-
-{include file="header.tpl" gee="joe"}
-{include file="header.tpl" gee="joe $foo bar"}
-{include file="header.tpl" gee="joe{$foo}bar"}
-{include file="header.tpl" gee="joe{$foo.$foo}bar"}
-{include file="header.tpl" gee="joe{$myobj->test(1)}bar"}
-{include file=$includeme}
-{include file=$includeme gee="joe"}
-{include file="{$top}.tpl"}
-
-JAVSCRIPT TEST
-
-
-
-MATH TESTS:
-
-$one+2 is {$one+2}
-$one + 2 - $one is {$one + 2 - $one}
-$one*$one is {$one*$one}
-$one/$one is {$one/$one}
-abs(-$one) is {abs(-$one)}
-
-$footest is {$footest}
-
-FOREACH TESTS:
-
-{foreach from=$blah key="idx" item="val"}
-  $idx/$val is {$idx}/{$val}
-{/foreach}
-
-TEST FINISHED
-