[Templates] TT2 inconsistency

Jonas Liljegren jonas@paranormal.se
Thu, 3 Aug 2000 14:57:55 +0200 (CEST)


Plural:

    my $template = Template->new({
        BLOCKS => {
            header => '<html><head><title>[% title
%]</title></head><body>',
            footer => '</body></html>',
            funky  => sub { blah_blah($blah); return $some_text },
        }
    });


Singular:

    my $template = Template->new({
        ERROR => {
            dbi      => 'error/database.html',   # DBI error
            user.pwd => 'error/badpasswd.html',  # invalid user password
            user     => 'user/index.html',       # general 'user' handler
            default  => 'error/error.html',      # default error template
        }
    });

-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html