/
service2.t
36 lines (30 loc) · 857 Bytes
/
service2.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#============================================================= -*-perl-*-
#
# t/service.t
#
# Test the Template::Service module.
#
# Written by Andy Wardley <abw@kfs.org>
#
# Copyright (C) 1996-2000 Andy Wardley. All Rights Reserved.
# Copyright (C) 1998-2000 Canon Research Centre Europe Ltd.
#
# This is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
#
# $Id$
#
#========================================================================
use strict;
use lib qw( ./lib ../lib );
use Template::Service;
#$Template::Service::DEBUG = 1;
my $service = Template::Service->new({
INCLUDE_PATH => 'test/src:test/lib',
PRE_PROCESS => 'config',
POST_PROCESS => 'footer',
});
$service->_dump();
$service->context->_dump();
print $service->process('tryme', { r => 'romeo' })
|| $service->error();