# -*- mode: perl; coding: utf-8 -*-
# Keitairc::View
-# $Id: View.pm,v 1.24 2009-07-15 13:41:55 ishikawa Exp $
+# $Id: View.pm,v 1.25 2009-07-15 13:47:01 ishikawa Exp $
# $Source: /home/ishikawa/work/keitairc/tmp/keitairc/lib/Keitairc/View.pm,v $
#
# Copyright (c) 2008 Jun Morimoto <morimoto@mrmt.net>
$arch = 'ipod-sjis';
}
- my $t = new HTML::Template(
- filename => $me->template_path("$arch/$template"),
- die_on_bad_params => 0,
- cache => 1);
- $t->param($p);
+ if (my $filename = $me->template_path("$arch/$template")) {
+ my $t = new HTML::Template(
+ filename => $filename,
+ die_on_bad_params => 0,
+ cache => 1);
+ $t->param($p);
- if(defined $vars){
- $t->param($vars);
- }
+ if(defined $vars){
+ $t->param($vars);
+ }
- $t->output();
+ $t->output();
+ }
}
################################################################