sub _tt {
my ($self, $r) = @_;
my $root = $r->{ar}->document_root . "/". $r->{ar}->location;
- warn "Root was $root";
Template->new({ INCLUDE_PATH => [
$root,
($r->model_class && File::Spec->catdir($root, $r->model_class->moniker)),
if (@{$r->objects || []} > 1) {
$args{$r->model_class->plural_moniker} = $r->objects;
} else {
- ($args{$r->model_class->moniker}) = @{$r->objects};
+ ($args{$r->model_class->moniker}) = @{$r->objects ||[]};
}
}