add site_local_files feature for easy lib/template override

This commit is contained in:
Oliver Gorwits
2017-05-14 21:12:19 +01:00
parent 824ec751e2
commit da04522199
4 changed files with 30 additions and 6 deletions

View File

@@ -143,6 +143,21 @@ be loaded before (and hence override) any templates built in to Netdisco.
If you do want to copy and override a built in web template, then create the
directories necessary (such as "ajax" or "sidebar") in this path.
Note that templates may need to have a further "C<views>" subdirectory
created.
=head3 C<site_local_files>
Value: Boolean. Default: false.
A shortcut for using C<include_paths> and C<template_paths>. Setting this to
true will push C<< $home/nd-site-local/{lib,share} >> into those settings,
respectively. You can then put Perl code in C</lib> and templates in C</share>
within the C<nd-site-local> directory (you have to create this yourself).
Note that templates may need to have a further "C<views>" subdirectory
created.
=head3 C<external_databases>
Value: List of Database Configuration Hashes. Default: None.