|
|
ru.cgi.perl- RU.CGI.PERL ------------------------------------------------------------------ From : Alex Povolotsky 2:5020/145 22 Jun 2001 12:06:31 To : Alex Dedul Subject : Re: HTML::Mason, как пpавильно сделать ? -------------------------------------------------------------------------------- .RFC-X-Complaints-To: usenet@shuttle.svib.ru .RFC-NNTP-Posting-Date: Fri, 22 Jun 2001 08:06:31 +0000 (UTC) .RFC-X-Newsreader: Gnus v5.6.45/XEmacs 21.1 - "Cuyahoga Valley" From: Alex Povolotsky <tarkhil@over.ru> >>>>> "Alex" == Alex Dedul writes: > Вот паpу пpимеpов. Сначала с autohandler autohandler.mc: <%init> > my %config = (bgcolor => '#ffffff', color => '#000000'); > $m->call_next(%ARGS, cfg => \%config); </%init> > index.mc: % $m->out($cfg{bgcolor}); <br> % $m->out($cfg{color}); > <%args> %cfg </%args> ... я так пробовал, не понравилось. === cut page.html === [...] <table bgcolor=<%$self->attr('bgcolor')%>> === cut page.html === === cut autohandler === <%attr> bgcolor => '0xABCDEF00' fgcolor => '0x00FEDCBA' </%attr> === cut .param === === cut othercolor.html === %# А здесь fgcolor другой!!! <%attr> fgcolor => '0xAABBCCDD' </%attr> === cut othercolor.html === Понятно? -- Alex. --- ifmail v.2.15 * Origin: Minas Tirith (2:5020/145@fidonet) Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.cgi.perl/10400519cc821.html, оценка из 5, голосов 10
|