|
|
ru.perl- RU.PERL ---------------------------------------------------------------------- From : Roman Kirjanov 2:5020/400 20 Apr 2003 11:54:27 To : Alexey Mahotkin Subject : Re: Текущий путь. --------------------------------------------------------------------------------
Hello, Alexey!
You wrote to "Roman Kirjanov" on Sat, 19 Apr 2003 20:45:49 +0000 (UTC):
Добрался до шаблонов:
- --- tmpl.pl ---
#!/usr/bin/perl
use strict;
use Template;
sub foo {return "this is 'foo'\n";}
my $tpl = Template->new() || die Template->error(), "\n";
$tpl->process('tmpls/engine.tpl') || die $tpl->error();
- --- tmpls/engine.tpl ---
[% foo(); %][% GET foo(); %]
Hичего не выводит.
если я START_TAG и END_TAG делаю такими <?tpl и ?> - говорит вот что
file error - parse error: tmpls/engine.tpl line 1: unexpected end of
directive
[% new_msgs ? %]
Где я путаю ?
With best regards, Meister.
[ http://www.sinn.ru/~meister/ ]
--- ifmail v.2.15dev5
* Origin: Demos online service (2:5020/400)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.perl/6577be3c419c.html, оценка из 5, голосов 10
|