Annotation of parser3/src/www/htdocs/index.html, revision 1.177

1.48      paf         1: @main[]
1.177   ! paf         2: $currentFolder[/a/b]
        !             3: $path[^currentFolder.lsplit[/]]
        !             4: ^path.flip[]
        !             5: $path{
        !             6: ^menu{$0}{,}
        !             7: }
        !             8: <hr>
1.175     paf         9: $t1[^table:set{key     value
                     10: 1      v1
                     11: 2      v2}]
                     12: $h1[^t1.hash[key]]
                     13: ^h1.default[$value[nothing]]
1.176     paf        14: ^$h1.2.value=$h1.2.value<br>
                     15: ^$h1.2x.value=$h1.2x.value<br>
1.175     paf        16: <hr>
1.172     paf        17: $t2[^table:set{key     a       b
1.173     paf        18: 1      a1
1.172     paf        19: 2      a2      b2
                     20: }]
1.175     paf        21: t2 ^if(^t2.empty[]){empty}{not empty}<br>
1.173     paf        22: ^t2.offset(1)
                     23: $t2.b
                     24: $r[^t2.record[]]
                     25: <hr>
                     26: $th[^t2.hash[b]]
                     27: ^$th.b2.a=$th.b2.a<br>
                     28: <hr>
                     29: $th[^t2.hash[key;a]]
1.174     paf        30: ^$th.2.a=$th.2.a<br>
1.172     paf        31: <hr>
1.171     paf        32: #^OP:eval(1<2)
1.169     paf        33: 
                     34: $filelist[^table:dir[.]]
1.168     paf        35: <hr>
                     36: $path[/news/tululu/]
1.169     paf        37: #^path.flip[]
1.168     paf        38: <hr>
1.167     paf        39: $branches[^table:set{name      val
                     40: index.cgihtml  123
                     41: }]
                     42: $splitURI[^request:uri.lsplit[/]]
1.171     paf        43: name ^if(^branches.locate[name;$splitURI.1]){found;not found}:
                     44: $branches.name
1.167     paf        45: <HR>
1.166     paf        46: $splitURI[^request:uri.lsplit[/]]
1.164     paf        47: $splitURI.0!$splitURI.1
                     48: <HR>
                     49: 
1.163     paf        50: $t2[^table:set{dir     title
                     51: /here  Here
                     52: }]
                     53: $t2{^menu{${dir}-$title}[,]}
                     54: <HR>
                     55: $dir[news]
                     56: $list[^table:dir[$dir]]
                     57: ^list.menu{
                     58:     $subdir[$dir/$list.name]
                     59:        $sublist[^table:dir[$subdir]]
                     60:        ${list.name}/ $sublist{^menu{$name}[,]}<br>
                     61: }
                     62: <HR>
1.162     paf        63: ^t[x]
                     64: <HR>
1.161     paf        65: ^if(in "/otherdeeper"){y;n}
                     66: <HR>
1.160     paf        67: ^$form:проверка_имя=$form:проверка_имя<BR>
                     68: <form method=post>
                     69: <input name=проверка_имя value=проверка_значение>
                     70: <input type=submit>
                     71: </form>
                     72: <HR>
                     73: 
1.116     paf        74: ^^table:dir[/]:<BR>
                     75: $d[^table:dir[/]]
1.158     paf        76: $d{^menu{$name &nbsp^;&nbsp^;&nbsp^;&nbsp^;^if(-f $name){-f} ^if(-d $name){-d};<BR>}}
1.115     paf        77: <HR>
                     78: 
1.158     paf        79: $files[^table:set{name}]
1.159     paf        80: $d{^menu{
                     81:     ^if(-d "$name"){
                     82:         ^:files.append{$name}
1.158     paf        83:     }
1.159     paf        84: }}
                     85: 
1.158     paf        86: $files{^menu{$name}[,]}
1.94      paf        87: <HR>
1.31      paf        88: 
1.159     paf        89: @exception[origin;source;comment;type;code][i;j]
1.35      paf        90: <body bgcolor=black>
                     91: <font color=white>
1.31      paf        92: ERROR:
1.67      paf        93: ^if(def $source){$origin '$source'}
1.31      paf        94: ${comment}.
                     95: ^if(def $type){type=$type}
                     96: ^if(def $code){code=$code}
1.42      paf        97: 
1.43      paf        98: @auto_test[]
                     99: ^BASE.auto_test[]
1.168     paf       100: <li>${request:uri}!
                    101: 
                    102: @t[a]
                    103: -${a}-
                    104: @end
                    105: 

E-mail: