--- parser3/src/www/htdocs/Attic/index.html 2001/11/23 10:38:53 1.491
+++ parser3/src/www/htdocs/Attic/index.html 2001/12/21 14:08:55 1.510
@@ -1,4 +1,13 @@
+@auto[]
+$request:charset[windows-1251]
+$response:charset[windows-1251]
+
@main[]
+^ttime[]
+#^tupper[]
+#^treplace[]
+#^xslt2[]
+#^tcache2[]
#$ORIGINS(1)
#$t[^table::set{a b} ^table::set{c d}]
#^ttaintuntaint[]
@@ -28,7 +37,7 @@
#^filelist[]
#^connect[mysql://user:pass@host]{ }
#^безнадёжна_попытка_поправить_непоправимое[]
-^tcache[]
+#^tcache[]
#^thashfileexp[]
#^tcounter[]
#^tablehash[]
@@ -74,6 +83,48 @@
OK
+@ttime[]
+$now[^date::now[]]
+$now.hour:$now.minute
+
+@tupper[]
+$t[abcABCабвАБВ]
+$t
+^t.upper[]
+
+@treplace[]
+$copy-paste-clean[^table::set{a b
+. _
+, _
++ _
+& _
+? _
+= _}]
+
+$cache_key[^taint[в.а,с+я]&был?тут=недавно.cache]
+# почему-то этот replace роняет апач в 500 ошибку :(
+#^cache_key.replace[$copy-paste-clean]
+$test[abc]
+^test.save[$cache_key]saved
+$cache[^file:list[.;\.cache^$]]
+^file:delete[$cache_key]deleted($cache.name)
+
+
+
+@xslt2[]
+$xdoc[^xdoc::set{
+hi
+}]
+#^show-xdoc2[$xdoc]
+^show-xdoc2[^xdoc.transform[templates/_document.xslt]]
+
+
+
+@tcache2[]
+^cache[$DB_HOME/keyключ](2){
+ ^math:random(100)
+}
+
@ttaintuntaint[]
^taint[html][
@@ -265,12 +316,11 @@ $dom_created_in_air[^xdoc::create[doc]]
@tcache[]
#^hashfile:clear[cache]
$code[^hashfile::open[$DB_HOME;cache]]
-^code.cache[key](100){
+^code.cache[key](2){
^math:random(100)
# ^code.delete[]
}
-
@thashfileexp[]
$hf[^hashfile::open[$DB_HOME;hashfile]]
$hf.paf[$.value[крут] $.expires(3)]
@@ -700,7 +750,7 @@ $file[^xdoc.file[
^file.save[text;out/save_file.html]
#$response:body[^xdoc.file[ $.media-type[text/paf] ]]
^taint[html][^xdoc.string[
-# $.method[html]
+ $.method[html]
# $.version[1.0]
# $.encoding[utf-8]
# $.omit-xml-declaration[yes]
@@ -711,4 +761,3 @@ $file[^xdoc.file[
$.media-type[text/paf]
]]
-