|
|
| version 1.32, 2001/03/21 16:48:19 | version 1.242, 2001/07/25 12:18:23 |
|---|---|
| Line 1 | Line 1 |
| ################################################################# | |
| # тут описаны следующие макросы : | |
| # default[val;deflt] | |
| # ifdef[value;deflt;undef] | |
| # color[color1;color2] | |
| # load[file] | |
| # include[file] | |
| # trim[string;char] | |
| # getFileExt[file] | |
| ################################################################# | |
| # старый добрый default | |
| @main[] | @main[] |
| <form method=post> | #$response:status[404] |
| (^$form:name=$form:name)<BR> | #$response:location[/inh.html] |
| <input name=name value="^default[$form:name;не знаю]"> | #<hr> |
| <input type=submit> | $таблица[^table:set{a b |
| </form> | 1 2 |
| 11 22 | |
| @default[test;def] | }] |
| ^if(^test.length[]){$test}{$def} | ^$таблица.fields.a=$таблица.fields.a<br> |
| ^$таблица.a=$таблица.a<br> | |
| @exception[origin;source;comment;type;code] | <hr> |
| ERROR: | $n[] |
| ^if(def $source){$origin '$source'} | =^n.match[sdf][]{123}= |
| ${comment}. | <hr> |
| ^if(def $type){type=$type} | |
| ^if(def $code){code=$code} | =$3= |
| <hr> | |
| $строка[123] | |
| ^строка.match[(.);g]{($match.1)} | |
| <hr> | |
| $a{ | |
| $b[1] | |
| } | |
| ^$b=$b<br> | |
| ^$a!$a<br> | |
| ^$b=$b<br> | |
| <hr> |