Name

TemplateDir — specify common template/fallback "pages" directories

SYNOPSIS

directory_name...

DESCRIPTION

Specify directories containing default pages. This effectively allows you to keep pages common for all catalogs in common directories, or — in case of a catalog directive — extend the page search outside the catalog's pages/ directory.

DIRECTIVE TYPE AND DEFAULT VALUE

Global directive,
Catalog directive

EXAMPLES

Example: Setting TemplateDir

TemplateDir /usr/local/interchange/default_pages

Example: Setting TemplateDir to multiple directories

TemplateDir /usr/local/interchange/default_pages /common/pages

NOTES

AVAILABILITY

TemplateDir is available in Interchange versions:

4.6.0-5.7.0 (cvs-head)

SOURCE

Interchange 5.7.0:

Source: lib/Vend/Config.pm
Line 477

['TemplateDir',      'root_dir_array',    ''],

Source: lib/Vend/Config.pm
Line 3830 (context shows lines 3830-3846)

sub parse_root_dir_array {
my($var, $value) = @_;
return [] unless $value;

no strict 'refs';
my $c = ${"Global::$var"} || [];

my @dirs = grep /\S/, Text::ParseWords::shellwords($value);

foreach my $dir (@dirs) {
  $dir = "$Global::VendRoot/$dir"
    unless file_name_is_absolute($dir);
  $dir =~ s./+$..;
  push @$c, $dir;
}
return $c;
}

Source: lib/Vend/Config.pm
Line 543

['TemplateDir',      'dir_array',      ''],

Source: lib/Vend/Config.pm
Line 3848 (context shows lines 3848-3858)

sub parse_dir_array {
my($var, $value) = @_;
return [] unless $value;
$value = "$C->{VendRoot}/$value"
  unless file_name_is_absolute($value);
$value =~ s./+$..;
$C->{$var} = [] unless $C->{$var};
my $c = $C->{$var} || [];
push @$c, $value;
return $c;
}

AUTHORS

Interchange Development Group

SEE ALSO

DocBook! Interchange!