@autoexec
^macro_use[/conf/hosting.cfg]
^var[uri;^match[\?.*;;;^uri[]]]
^context[root;^load[named;root.cfg]]
@menu[] формирование главного меню документа
^context[root;
^menu[
^eq[^uri[];^item[uri];
^item[title]
;
^item[title]
]
|
]
]
@navigation[title] вторичная навигация
parser.ru /
^tolower[
^eq[^var[uri];/;
example
;
example /
^ifdef[$title;
^context[root;^item[title]] /
$title
;
^context[root;^item[title]]
]
]
]
@html[title;leftCol;rightCol] общий шаблон для документов на сайте
^match[<[^^>]+>;g;;^macro[navigation;$title]]
^macro[menu]
| ^macro[navigation;$title] |
|
Разбор полета
$leftCol |
$rightCol |
|
^macro[footer]
@footer[] - footer для каждого документа на сайте
@server.fiction[commands] фиктивный макрос. Просто не хотим показывать пароль... ;-)
^server[username:password@hostname/database;`$commands`]
@SERVER_ERROR[message]
sql server is temporary down...